W
Woody Splawn
Lets say I have a winform that is populated with a dataset. The dataset and
data table may have several rows in it. Lets say I am looking at the
winform and I want to assign a value to a certain column in the associated
datatable. Lets say there are 10 rows in the table and I am on row 5, and I
want to assign the value to row 5, but I don't know that I am on row 5.
Anyway, my method for assigning the value to the field would be:
Dim Dt As DataTable
Dt = DsMain1.Tables("Contracts")
Dt.Rows(4)("PriorityCon") = "2"
However, if I did not know I was on Row 5 how would I determine this and put
it in a variable like iRow and then use Dt.Rows(iInt)("PriorityCon") = "2"
data table may have several rows in it. Lets say I am looking at the
winform and I want to assign a value to a certain column in the associated
datatable. Lets say there are 10 rows in the table and I am on row 5, and I
want to assign the value to row 5, but I don't know that I am on row 5.
Anyway, my method for assigning the value to the field would be:
Dim Dt As DataTable
Dt = DsMain1.Tables("Contracts")
Dt.Rows(4)("PriorityCon") = "2"
However, if I did not know I was on Row 5 how would I determine this and put
it in a variable like iRow and then use Dt.Rows(iInt)("PriorityCon") = "2"