Read row value from previous DataRowView
C#
2
Posts
2
Posters
0
Views
1
Watching
-
If I want to grab a DataRowView I use: DataRowView arrangement = (DataRowView)BindingContext[debtorDataSet, "Debtor.FK_PaymentArrangements_Debtor"].Current; How can I get a DataRowView for the previous position without changing the position to do so please?
-
If I want to grab a DataRowView I use: DataRowView arrangement = (DataRowView)BindingContext[debtorDataSet, "Debtor.FK_PaymentArrangements_Debtor"].Current; How can I get a DataRowView for the previous position without changing the position to do so please?
BindingContext[debtorDataSet, "Debtor.FK_PaymentArrangements_Debtor"].Position
will give the current position. Get the table from
debtorDataSet
and take the row at position - 1.Navaneeth How to use google | Ask smart questions