Thursday, July 30, 2009

Datagridview in C#.Net 2005?

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.


No comments:

Post a Comment