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.

QueryCellStyleInfo & TableControlCurrentCellAcceptedChanges

Thread ID:





63380 Jul 3,2007 09:48 AM Jul 3,2007 02:20 PM Windows Forms 1
Tags: GridControl
Raymond Sisneros
Asked On July 3, 2007 09:48 AM

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 02:20 PM

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.

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.