Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
It's a strange thing.
There is a DGV in my form which user can add rows to it.but when I click on a cell Of
First row to add some data it is disable and I can't enter anything.
I disabled all event except datagridview_LostFocus and I found the problem is this.
But I don't know how!!!!in this event I try to activate another control in form when
DGV lost focus(for example by Tab key)

C#
void dataGridView1_LostFocus(object sender, EventArgs e)
{
  if (chkbxChange.Enabled == false)
    lblPrsnlCod.Focus();
}
Posted
Updated 15-Aug-14 0:29am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900