Problems with grid & menu

i got a form with 3 master detail grids. a save button. and a menu bar item with the same code as the save button. but if i click on the save menu bar item, i got this exception: System.IndexOutOfRangeException: An der Position 0 befindet sich keine Zeile. at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.IsOriginalVersion(Int32 index) at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value) at System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value) at Syncfusion.Windows.Forms.Grid.GridModelDataBinder.EndEdit() at Syncfusion.Windows.Forms.Grid.GridDataBoundGrid.EndEdit() what is the diffrent between a button and a menubaritem? i also fire a EndCurrentEdit on my save method, but without any success. i use syncfusion 3.201.1.0 with vs 2003 / .net 1.1

2 Replies

AD Administrator Syncfusion Team February 2, 2006 09:09 AM UTC

Hi Christian, Try Binder.EndEdit(); aftere CurrentCell.EndEdit(); But still I am not getting any exception as mentioned. Can you see the issue in the attached sample? Regards, Calvin.

40357modi.zip


CP Christian Pogea February 2, 2006 10:48 AM UTC

Binder.EndEdit(); has solved the problem. thanks, bye

Loader.
Up arrow icon