Hello,
I have a RadGrid where I want to initiate an "InitInsert" command to open a Web User Control for a grid insert.
The command event needs to fire from a button outsite the grid.
I have been able to do this with the following code associated with the button's "Click" event.
But, this only works when there are dataitems assoicated with the grid.
How do I use the "FireCommandEvent" when there are no Grid Data Items? Or, is there another work around?
Thanks,
Jon
protected void btnAddNew_Click(object sender, EventArgs e) |
{ |
GridDataItem gridItem = rgStoreManagement.Items[0]; |
gridItem.FireCommandEvent(RadGrid.InitInsertCommandName, String.Empty); |
} |