or
GridViewComboBoxColumn companyClmn = new GridViewComboBoxColumn( COLUMN_COMPANY ); |
companyClmn.DataSource = this.transport.GetCompanies( this.username ); |
companyClmn.DisplayMember = "companyName"; |
companyClmn.FieldName = "companyID"; |
companyClmn.Width = 150; |
private void SaveToDatabase( object sender, RowValidatedEventArgs e ) { |
object value = e.Row.Cells[0].Value; // object reference not set... |
} |
System.InvalidCastException: Unable to cast object of type 'Telerik.WinControls.Primitives.FillPrimitive' to type 'Telerik.WinControls.UI.GridDetailViewCellElement'. |
at Telerik.WinControls.UI.GridDetailViewCellElement.UpdateTableElement() |
at Telerik.WinControls.UI.GridDetailViewCellElement.UpdateInfoCore() |
at Telerik.WinControls.UI.GridCellElement.UpdateInfo() |
at Telerik.WinControls.UI.GridRowElement.UpdateInfo() |
at Telerik.WinControls.UI.GridDetailViewRowElement.UpdateInfo() |
at Telerik.WinControls.UI.GridRowElement.Initialize(GridViewRowInfo rowInfo) |
at Telerik.WinControls.UI.GridTableBodyElement.UpdateRow(Int32 position, GridViewRowInfo rowInfo) |
at Telerik.WinControls.UI.GridTableBodyElement.ArrangeOverride(SizeF finalSize) |
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect) |
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect) |
at Telerik.WinControls.UI.GridTableElement.ArrangeOverride(SizeF finalSize) |
at Telerik.WinControls.RadElement.ArrangeCore(RectangleF finalRect) |
at Telerik.WinControls.RadElement.Arrange(RectangleF finalRect) |
at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayout() |
at Telerik.WinControls.Layouts.ContextLayoutManager.UpdateLayoutCallback(ILayoutManager manager) |
Dim myItem As New RadListBoxItem |
AddHandler myItem.Click, AddressOf Me.ListBoxClick |
Me.RadListBox1.Items.Add(myItem) |
Private Sub ListBoxClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) |
Dim myItem As RadListBoxItem = sender |
Dim myIndex As Integer = ??? <---- How can I get the index? |
Me.RadListBox1.SetSelected(myIndex, True) |
End Sub |