I want to refocus a specific cell in the datagridview i tried to do it by following code in the rowleave event but it doesn't work
dgv_currency.Focus();
dgv_currency.CurrentCell = dgv_currency[0, 0];
Thanks
Datagridview in C#.Net 2005?
I believe the current row is no longer current in the rowleave event. Pick an earlier event (CellEndEdit? CellValueChanged?) and use it instead.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment