GridGroupingControl: exception in ComboBox cell

Hello! I bind datasource (dataset) to the control and change appearance of the cell as ComboBox and exclusive. After selecting value from combo box in one row, I select same value for another row, the message about constrainted field appears (dataset), then I press right mouse on the grid, the exception occures: ************** Exception Text ************** System.IndexOutOfRangeException: There is no row at position 1. at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.IsOriginalVersion(Int32 index) at System.Data.DataRowView.GetColumnValue(DataColumn column) at System.Data.DataColumnPropertyDescriptor.GetValue(Object component) at Syncfusion.Grouping.CurrentRecordProperty.get_OriginalValue() at Syncfusion.Grouping.AddNewRecord.GetValue(FieldDescriptor fieldDescriptor) at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.SetupAddNewRecordFieldCell(GridTableCellStyleInfoIdentity e, GridTableCellStyleInfo style) at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.SetupStyleInfo(GridTableCellStyleInfoIdentity e, GridTableCellStyleInfo style) at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.CreateTableCellStyle(Element element, Int32 rowIndex, Int32 colIndex) at Syncfusion.Windows.Forms.Grid.Grouping.GridTable.GetTableCellStyle(Int32 rowIndex, Int32 colIndex) at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.GetTableViewStyleInfo(Int32 rowIndex, Int32 colIndex) at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.GetViewStyleInfo(Int32 rowIndex, Int32 colIndex, Boolean forceQueryCellInfo) at Syncfusion.Windows.Forms.Grid.GridControlBase.GetViewStyleInfo(Int32 rowIndex, Int32 colIndex) at Syncfusion.Windows.Forms.Grid.GridControlBase.GetCellRenderer(Int32 rowIndex, Int32 colIndex) at Syncfusion.Windows.Forms.Grid.SelectCellsHitTestInfo..ctor(GridControlBase grid, MouseEventArgs e, IMouseController controller) at Syncfusion.Windows.Forms.Grid.GridSelectCellsMouseController.HitTest(MouseEventArgs e, IMouseController controller) at Syncfusion.Windows.Forms.MouseControllerDispatcher.HitTest(Point point, MouseButtons mouseButton, Int32 clicks, IMouseController& controller) at Syncfusion.Windows.Forms.ScrollControl.HitTest(Point point, MouseButtons mouseButton) at Syncfusion.Windows.Forms.Grid.Grouping.GridNestedTableControlCellRenderer.OnHitTest(Int32 rowIndex, Int32 colIndex, MouseEventArgs e, IMouseController controller) at Syncfusion.Windows.Forms.Grid.GridCellRendererBase.RaiseHitTest(Int32 rowIndex, Int32 colIndex, MouseEventArgs mouseEventArgs, IMouseController controller) at Syncfusion.Windows.Forms.Grid.SelectCellsHitTestInfo..ctor(GridControlBase grid, MouseEventArgs e, IMouseController controller) at Syncfusion.Windows.Forms.Grid.GridSelectCellsMouseController.HitTest(MouseEventArgs e, IMouseController controller) at Syncfusion.Windows.Forms.MouseControllerDispatcher.HitTest(Point point, MouseButtons mouseButton, Int32 clicks, IMouseController& controller) at Syncfusion.Windows.Forms.MouseControllerDispatcher.ProcessMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.ScrollControllMouseControllerDispatcher.ScrollControlMouseMoveHandled(Object sender, MouseEventArgs e) at Syncfusion.Windows.Forms.ScrollControl.OnScrollControlHandledMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.ScrollControl.OnMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.Grid.GridControlBase.OnMouseMove(MouseEventArgs e) at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message& msg) at Syncfusion.Windows.Forms.Grid.Grouping.GridTableControl.WndProc(Message& msg) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

1 Reply

AD Administrator Syncfusion Team June 24, 2004 06:41 PM UTC

Thanks for reporting this. This is also a bug. We are looking into it and we''ll get that fixed. Thanks, Stefan

Loader.
Up arrow icon