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

QueryCellStyleInfo & TableControlCurrentCellAcceptedChanges

Thread ID:





63380 Jul 3,2007 01:48 PM UTC Jul 3,2007 06:20 PM UTC WinForms 1
Tags: GridControl
Raymond Sisneros
Asked On July 3, 2007 01:48 PM UTC

I am trying to disable two cells during addnewrecord. However, when I tab from the cell adjacent to a disabled cell the program hangs.
I am using querycellstyleinfo to disable the cells and tablecontrolcurrentcellacceptedchanges to gather information in my local object. I am using a gridgroupingcontrol and syncfusion ver

I have attached an example program.
Enter data in cell d1 hit tab works fine.
Enter data in d2 hit tab and it hangs.





haneefm [Syncfusion]
Replied On July 3, 2007 06:20 PM UTC

Hi Ray,

You can handle the TableControlCurrentCellKeyDown event of the grid and move the current cell to required position by using the record.SetCurrent method when the TAB key is pressed. Below are the code snippet.

void _Grid_TableControlCurrentCellKeyDown(object sender, GridTableControlKeyEventArgs e)
if (e.Inner.KeyCode == Keys.Tab)
int row = e.TableControl.CurrentCell.RowIndex, col = e.TableControl.CurrentCell.ColIndex;
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(row, col );
Record rec = style.TableCellIdentity.DisplayElement.GetRecord();
if ( rec != null && style.TableCellIdentity.Column != null && style.TableCellIdentity.Column.Name == "d2")
e.Inner.Handled = true;


Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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