I am using a DataSet as the DataSource of my UltraGrid and am using an ErrorProvider. Is it possible to get the underlying column error of a cell or row error of a row through the grid rather than having to find the row in the datatable based on the values in the grid?
I'm not sure offhand whether this is possible, but you don't really have to do any work locating the underlying DataRow, since there is a ListObject on the UltraGridRow that will return that DataRow.
-Matt
Thanks Matt, so you would just do:
Dim MyRow as DataRow = UltraGridRow.ListObject ?
Then do whatever validation on the row?
Thanks Mike,
I got it to work that way, I just forgot to post my solution:
Dim MyRow2 As DataRowView = RowName.ListObject If MyRow2.Row.GetColumnError("Role ID") <> ""Then ' do somethingEnd If
Thanks!~Kelly
It's a tiny bit more complicated than that because the ListObject will probably be a DataRowView, not a DataRow. So you just have toget the DataRowView and use the Row property to get the actual DataRow.
Not sure what you mean about "do whatever validation on the the row", though.