I am getting the above when trying to cast a datarow returned in a nodedatabound events' radtreenodeeventargs to a strongly typed datarow derived from the strongly typed datatable that the treeview was originally bound to.
To reproduce, just create a strongly typed dataset with one table, add a prometheus treeview to a page with an object datasource bound to the control that derives from the table you added to the dataset, then hook up the nodedatabound event for the control.
If you then create a datarow and try to cast it back to your strongly typed object it fails.
eg
protected void RadTreeView1_NodeDataBound(object sender, RadTreeNodeEventArgs e)
{
DataRow datarow = ((DataRowView)e.Node.DataItem).Row;
MyDataset.MyDataRow myrow = (MyDataset.MyDataRow)datarow;
Can someone please help me with this.
Darren
To reproduce, just create a strongly typed dataset with one table, add a prometheus treeview to a page with an object datasource bound to the control that derives from the table you added to the dataset, then hook up the nodedatabound event for the control.
If you then create a datarow and try to cast it back to your strongly typed object it fails.
eg
protected void RadTreeView1_NodeDataBound(object sender, RadTreeNodeEventArgs e)
{
DataRow datarow = ((DataRowView)e.Node.DataItem).Row;
MyDataset.MyDataRow myrow = (MyDataset.MyDataRow)datarow;
Can someone please help me with this.
Darren