//To disable tab key behavior within the grid
this.gridGroupingControl1.WantTabKey = false; |
//Event subscription
this.gridGroupingControl1.TableControl.GotFocus += GridGroupingControl1_GotFocus;
//Customizing the event
private void GridGroupingControl1_GotFocus(object sender, EventArgs e)
{
Console.WriteLine("Control got focus");
} |
Thanks Arulpriya,
Here I attach the screen recording shows GGC could not be focused then previous control pressed tab key.
Generally, the first row should be highlighted when focused.
What parameter that I missed ?
Thank you.
Hartono
//Event subscription
this.gridGroupingControl1.TableControl.GotFocus += GridGroupingControl1_GotFocus;
//Event Customization
private void GridGroupingControl1_GotFocus(object sender, EventArgs e)
{
if(this.gridGroupingControl1.TableControl.CurrentCell.RowIndex == -1)
{
int topRowIndex = this.gridGroupingControl1.TableControl.TopRowIndex;
//To move the currentCell to top record row
this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(topRowIndex, 1);
}
} |