Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
2817 | Feb 14,2003 03:16 PM UTC | Feb 12,2020 07:00 AM UTC | WinForms | 17 |
![]() |
Tags: GridControl |
//Event Subscription
gridControl1.KeyDown += GridControl1_KeyDown;
//Event Handling
private void GridControl1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Modifiers == Keys.None && e.KeyCode == Keys.Tab)
{
var cc = gridControl1.CurrentCell;
while (gridControl1[cc.RowIndex,cc.ColIndex + 1].ReadOnly)
{
//To increment rowIndex when last column is made as Read-Only
if (cc.ColIndex+1 >= gridControl1.ColCount)
{
cc.MoveTo(cc.RowIndex + 1, 0);
}
else
cc.MoveTo(cc.RowIndex, cc.ColIndex + 1);
}
}
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.