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.
Unfortunately, activation email could not send to your email. Please try again.

cell tabbing

Thread ID:





99995 Jun 24,2011 12:01 PM Jun 28,2011 06:04 AM WPF 1
Tags: GridControl
Mary Fontana
Asked On June 24, 2011 12:01 PM

In my application I have all but two columns are read only.
I create the columns with GridDataVisibleColumn and set the IsReadOnly property.

When tabbing to cells I would like to restrict tabbing to only the cells that can be edited.

Is this possible?

Manikandan [Syncfusion]
Replied On June 28, 2011 06:04 AM

Hi Mary,

Thanks for using Syncfusion Products.

You can achieve your requirement by handling QueryCellInfo event and setting enabled property to false as follows:

Code snippet [C#]:

this.grid.Model.QueryCellInfo += new GridQueryCellInfoEventHandler(Model_QueryCellInfo);

void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
if (this.grid.VisibleColumns[e.Cell.ColumnIndex].IsReadOnly == true)
e.Style.Enabled = false;

We have prepared a sample based on this and you can find the sample under the following location:

Sample : http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Sample_I522135294.zip

Please let us know if this helps.



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.

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.