Hello everybody,
I have a problem regarding setfocus.
I have a datagrid with 3 columns: MinAge, MaxAge and Code.
In Code column I need to generate a code on set focus event. I mean ... when you click on Code textbox (in edit mode) to appear automatically the code.
Can anybody help me?
Than you!
Set Focus
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted May 21, 2008, 9:25 AM EDT
private void dataGridView1_CellClick(object sender,
DataGridViewCellEventArgs e)
{
MessageBox.Show(
dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString());
}
menelaussa menelaussa14 reputationPosted May 21, 2008, 10:49 AM EDT
Can you help me?
Thank you :)!