i want to use user control in rad grid to insert and update actions
and i need to do some action in editcommand event.
i need to do some action on controls that i place in user control and i need to manipulate this controls same binding to
the objectdatasource or etc.
but when create a variable in editcommand event of rad grid of that user control ,
this variable is null and i cant refer to this variable and controls on this variable .
please tel me how can i create a variable of this type and manipulate its controls?
protected void radgrid1_EditCommand(object source, GridCommandEventArgs e)
{
GridEditableItem editedItem = e.Item as GridEditFormItem;
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
// WHY userControl =NULL ??????
}
and i need to do some action in editcommand event.
i need to do some action on controls that i place in user control and i need to manipulate this controls same binding to
the objectdatasource or etc.
but when create a variable in editcommand event of rad grid of that user control ,
this variable is null and i cant refer to this variable and controls on this variable .
please tel me how can i create a variable of this type and manipulate its controls?
protected void radgrid1_EditCommand(object source, GridCommandEventArgs e)
{
GridEditableItem editedItem = e.Item as GridEditFormItem;
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
// WHY userControl =NULL ??????
}