A
Alcibiade
Hi to all,
this problem is aching my head:
I have a datagridview in binding
When a user select a record, I need to get the previous record data.
Simply I did it:
this.periodBindingSource.MovePrevious() ;//I move to
previous record
previousdataRow = (periodBindingSource.Current as
DataRowView);//I store informations of previous record
this.periodBindingSource.MoveNext();//I go back to user
selected record
The problem is that after MoveNext, the current record of binding
source remains the previous, like the last instruction was ignored.
Why?
How can I solve this?
Thanks
this problem is aching my head:
I have a datagridview in binding
When a user select a record, I need to get the previous record data.
Simply I did it:
this.periodBindingSource.MovePrevious() ;//I move to
previous record
previousdataRow = (periodBindingSource.Current as
DataRowView);//I store informations of previous record
this.periodBindingSource.MoveNext();//I go back to user
selected record
The problem is that after MoveNext, the current record of binding
source remains the previous, like the last instruction was ignored.
Why?
How can I solve this?
Thanks