vb.net - Get value from DataSet column starting with DataGridView's row and column indexes -
i have row , column indexes of value in datagridview , need find corresponding column value in dgv's dataset, matching on id field of table.
so dgv cell value being accessed with:
dgvemployees.rows(e.rowindex).cells(e.columnindex).value().tostring()
the id column dataset employeeid, found in dgv
dgvemployees.rows(e.rowindex).cells(1).value().tostring()
i know can specific dataset's row
directcast(row, employeesdataset.employeesrow).employeesid
and i've been iterating through dataset's row's original , current values
employeesdataset.employees(r)(c, datarowversion.original).tostring()
and
employeesdataset.employees(r)(c, datarowversion.current).tostring()
respectively.
so, given of information, how can compare matching column in dataset known column in datagridview? know answer lies somewhere in code i've offered here, i'm not sure how put need!
Comments
Post a Comment