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 DharmadasaRank #1,875 · 794 reputationPosted Nov 12, 2009, 7:07 PM EST
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.
Naeem KhanRank #2,072 · 698 reputationPosted Nov 12, 2009, 7:10 PM EST
Nilanka DharmadasaRank #1,875 · 794 reputationPosted Nov 12, 2009, 7:28 PM EST
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.