Hello, I can convert a UltraGridRow to DataRow only the data
If your grid is bound to a datatable/dataset then the ListObject property of the UltraGridRow will be a DataRowView object.
What if it's bound to a Linq query?
I can't figure out how to fetch the DataRowView from the ListObject in this case. It will cast to the type defined in my project, but nulls when attempting cast on DataRowView.
. DataRowView drv = (DataRowView)e.Row.ListObject;. [drv is null]
Trying to incorporate the Row/Cell error display from your how-to.
Thanks
Thanks Mike, I understand this now.
I didn't realize that the DataRowView class had nothing to do with Infragistics. I see now that it is a class from Microsoft's System.Data namespace and that it is the object offering the error display functionality.
Once again, you cannot assume that the ListObject is a DataRowView. The ListObject is of type object, because it can be anything. The type of object you get depends on your data source.
If you are binding the grid to a LINQ datasource, then I assume the ListObject is not a DataRowView, but rather some other type. I don't know if those objects support IDataErrorInfo.
Anybody ?