cell tabbing

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?




1 Reply

MA Manikandan Syncfusion Team June 28, 2011 10:04 AM UTC

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.

Regards,
Manikandan



Loader.
Up arrow icon