probelm in DataGridView focus in C#
Hello Every One,
i have data grid view in Windows Application ok which is bind from database here is some calculation process in datagrid view ok when i select the party from party list then second focus should in 3 cell.or in enter click should be go 4 cell.hope you underdstand what i want dear. if you know about this then let me know ok. Its Just for Focus Work in DataGridView....
tahnks in Advance

Nilanka DharmadasaPosted Nov 13, 2009, 12:28 AM
If you want this to happen after you select a value from cmbo box, then add it under sleected index changed event. Like this.
private void combobox1_SelectedIndexChanged(object sender, System.EventArgs e)
{
try
{
dataGridView1.CurrentCell = dataGridView1.CurrentRow.Cells[2];
dataGridView1.BeginEdit(true);
}
catch (Exception) { }
}
If this doesnt help u, let me know.
Naeem KhanPosted Nov 13, 2009, 12:10 AM
Nilanka DharmadasaPosted Nov 13, 2009, 12:07 AM
Sorry. It's not clear for me. :(
If you can paste your code here, or upload it to some place and send the link.
Then I can help you.