For users that do not use a mouse to control a grid, what is the proper way to allow users to add new rows to a syncfusion grid?
I''ve seen some grids where tabbing off the last column will automatically great a new blank row, and bring the user to the first column in that new row. Does syncfusion grid support this?
On the same note, how to you select multiple rows using just the keyboard?
ADAdministrator Syncfusion Team October 4, 2004 12:09 PM
If you set gridDataBoundGrid1.Binder.EnableAddNew = true, then just like MS Access, the grid will always display a AddNew row that the user can cursor to using the cursor keys, and just start typeing to add a new row.
If you do not want to see the AddNew row, then you would have to handle an event like QueryNextCurrentCell and add the row to your datatable yourself as the user is about to move off the last row.
To select rows without a mouse, if you set grid.ListBoxSelectionMode to MultiExtended, then you can use shift+cursor keys to select rows.
CAChad AllenOctober 4, 2004 12:32 PM
Thanks for the quick response. I wasn''t specific in my original question. I am not using the gridDataBoundGrid, I am using the GridControl which does''t seem to have the AddNew property.
ADAdministrator Syncfusion Team October 4, 2004 01:44 PM
Try setting this property and subscribing to this event.
this.gridControl1.Model.Options.WrapCellBehavior = GridWrapCellBehavior.NextControlInForm;
this.gridControl1.WrapCellNextControlInForm += new GridWrapCellNextControlInFormEventHandler(gridControl1_WrapCellNextControlInForm);