Hello!!
I have a datatable dt_DT1 wich contains 4 columns and 3 rows.
I want to replace all the contains of DT1 with only one row.
The row that I want is the next of the row with value ‘‘3’’
example:
DT1:
Column1 Column2 Column3
1 2 3
4 5 6
7 8 9
The unique value that doesnt change is ‘‘3’’ all of the rest change always. So I have to filtered first by the value 3, the increment the index row to extract the next datarow and replace the original datatable with only that datarow
Final result:
Column1 Column2 Column3
4 5 6
So do you know guys how to filter with the row index in Select method?
something like this:
dt_DT1.Select(“[RowIndex]”=‘int_rowIndexValue3 + 1’).CopyToDataTable
THANK YOU!