or
I have setup a Hierarchical Grid programmatically basically following the example in the Documentation. Now I need to update some Cells in the ChildGridView programmatically and assumed I can update the cell info with the following:
| '-- The ChildGridView has already been populated with data |
| Dim cTemplate As GridViewTemplate = GridViewPricing.MasterGridViewTemplate.ChildGridViewTemplates(0) |
| 'The following throws an error : |
| 'Object reference not set to an instance of an object. |
| cTemplate.Rows(0).Cells(1).Value="somedata" |

| Public Class RadForm1 |
| Private Sub RadForm1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load |
| 'TODO: This line of code loads data into the 'WODataset.WorkOrderMain' table. You can move, or remove it, as needed. |
| Me.WorkOrderMainTableAdapter.Fill(Me.WODataset.WorkOrderMain) |
| RadDropDownButton1.Items.Add(WODataset.WorkOrderMain.techFullNameColumn) |
| RadComboBox1.Items.Add(WODataset.WorkOrderMain.techFullNameColumn) |
| End Sub |
| End Class |

Hello,
there is a strange problem adding some RadContextMenuItems to the context menu from a GridView.
It works fine to catch the ContextMenuOpening event and add the Items (3 Separators and 4 MenuItems in this case) from a RadContextMenu on the form by the following code snippet:
| Private Sub DataGridViewMain_ContextMenuOpening(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles DataGridViewMain.ContextMenuOpening |
| Try |
| e.ContextMenu.Items.AddRange(RadContextMenuGridView.Items) |
| Catch |
| End Try |
| End Sub |