Hello, I can convert a UltraGridRow to DataRow only the data
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 ?
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
The above answers relate to WinGrid, since this thread was originally posted in the WinGrid forum.
I'm moving this thread to the WebGrid forum. [Edit] I'm instead going to split the thread off, so that the original thread can be left in the WinGrid forum.