Hi,
I have a 2-level grid with a template field as the last column, which also has a button. I am deleting the row manually from the database on the button's onclick event. The reason I am doing this is because I am binding my grid to a generic list of objects.
When I delete the row and databind the grid, I am getting this exception:
Unable to cast object of type 'Infragistics.Web.UI.Framework.Data.DataRecord' to type 'System.Web.UI.IHierarchyData'
Any help would be great!
Marshal
Hi Marshal,
Could you attach some sample code of what you are doing? Is there a reason you cannot allow the grid to perform the delete?
regards,David Young
Hi David,
I poked around a bit and got past the error if I clear all the rows before I do a databind again. However, I am stuck with adding a new row. I am databinding manuallu to a list of objects, each of which have child list of objects. I am able to edit, and delete the parent and child just fine.
I am seeing empty rows towards the bottom for both parent and child. But, is there a way I can link up the empty child row to the parent?