Hello,
I have a page containing two radGrid, one of them using a userControl as an editForm. When the user click on the update button, I have no trouble accessing the data from the UpdateCommand event. But, if the user click on the other radGrid, I need to exit edit mode, so I whant to do some verification and update the data if needed, but I can't find a way to access the user control containing the data. Since I was accessing the data from ItemDataBound and UpdateCommand this way
UserControl scheduleApprobationEditForm = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as UserControl;
I tried to access the data using the same idea from outside of my grid's events
UserControl userControl = (UserControl)_radg.EditItems[0].FindControl(GridEditFormItem.EditFormUserControlID);
But userControl stays null. I can access the item been edited as a GridEditableItem, but I haven't found a way to extract my userControl from it. So how can I access the userControl representing my editForm from anywhere in my code?
Thank you for your help,
LP
I have a page containing two radGrid, one of them using a userControl as an editForm. When the user click on the update button, I have no trouble accessing the data from the UpdateCommand event. But, if the user click on the other radGrid, I need to exit edit mode, so I whant to do some verification and update the data if needed, but I can't find a way to access the user control containing the data. Since I was accessing the data from ItemDataBound and UpdateCommand this way
UserControl scheduleApprobationEditForm = e.Item.FindControl(GridEditFormItem.EditFormUserControlID) as UserControl;
I tried to access the data using the same idea from outside of my grid's events
UserControl userControl = (UserControl)_radg.EditItems[0].FindControl(GridEditFormItem.EditFormUserControlID);
But userControl stays null. I can access the item been edited as a GridEditableItem, but I haven't found a way to extract my userControl from it. So how can I access the userControl representing my editForm from anywhere in my code?
Thank you for your help,
LP