Hi all
These seems only to work when using DataSource controls?
In our project I assigne directly a IList<UserDefinedDTO> to the DataSource of the WebDataGrid as in the following lines:
IList<MyUserDefinedDTO> myData = GetTheData();
MyWebDataGrid.DataSource = myData;
But when trying to cast back the row.DataItem
MyUserDefinedDTO data = (MyUserDefinedDTO)row.DataItem
an InvalidCastException is thrown (sorry for the german error message):
{"Das Objekt des Typs Infragistics.Web.UI.Framework.Data.DataRecord kann nicht in Typ MyUserDefinedDTO umgewandelt werden."}
Is it at all possible to cast back the row.DataItem in situations as described above?
Regards
Adrian