We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

questions regarding accessbility (keyboard only users)

Thread ID:

Created:

Updated:

Platform:

Replies:

19787 Oct 4,2004 04:25 PM UTC Oct 4,2004 06:44 PM UTC WinForms 3
loading
Tags: GridControl
Chad Allen
Asked On October 4, 2004 04:25 PM UTC

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? Thanks, Chad

Administrator [Syncfusion]
Replied On October 4, 2004 05:09 PM UTC

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.

Chad Allen
Replied On October 4, 2004 05:32 PM UTC

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. any ideas?

Administrator [Syncfusion]
Replied On October 4, 2004 06:44 PM UTC

Try setting this property and subscribing to this event. this.gridControl1.Model.Options.WrapCellBehavior = GridWrapCellBehavior.NextControlInForm; this.gridControl1.WrapCellNextControlInForm += new GridWrapCellNextControlInFormEventHandler(gridControl1_WrapCellNextControlInForm);
private void gridControl1_WrapCellNextControlInForm(object sender, GridWrapCellNextControlInFormEventArgs e)
{
	if(this.gridControl1.CurrentCell.RowIndex == this.gridControl1.RowCount)
	{
		this.gridControl1.RowCount++;
		e.Cancel = true;
		this.gridControl1.CurrentCell.MoveTo(this.gridControl1.RowCount, 1); 
	}
}

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;