I am dynammically creating a RadGrid on a Web User Control that is also added to the web form dynamically. I am calling DataBind() after each RadGrid creation on PageLoad and not utilizing NeedDataSource. I am trying to insert/update in an automatically generated edit form, which is rendering nicely, except that the Insert and Update Commands are not firing. I wish to catch the Insert and Update Commands to perform the record insert/updates - but those events are not firing after clicking on the insert and update links on the edit forms. I cannot use any Automatic inserting or updating and wish to perform the CRUD methods manually. Am I expecting too much from this control to handle all of this runtime generation?
RadGrid radgrid = new RadGrid();
radgrid.ID = "uc_attributeValues" + categoryAttributeID;
radgrid.MasterTableView.DataKeyNames = new string[] { "KeepHistoryGroupID" };
radgrid.AutoGenerateColumns = false;
radgrid.Skin = "Vista";
radgrid.Width = Unit.Percentage(95);
radgrid.EnableViewState = true;
radgrid.AllowAutomaticInserts = false;
radgrid.AllowAutomaticUpdates = false;
radgrid.AllowAutomaticDeletes = false;
radgrid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
radgrid.ItemCommand += new GridCommandEventHandler(radgrid_ItemCommand);
radgrid.ClientSettings.Selecting.AllowRowSelect = true;
radgrid.UpdateCommand += new GridCommandEventHandler(radgrid_UpdateCommand);
radgrid.InsertCommand += new GridCommandEventHandler(radgrid_InsertCommand);
RadGrid radgrid = new RadGrid();
radgrid.ID = "uc_attributeValues" + categoryAttributeID;
radgrid.MasterTableView.DataKeyNames = new string[] { "KeepHistoryGroupID" };
radgrid.AutoGenerateColumns = false;
radgrid.Skin = "Vista";
radgrid.Width = Unit.Percentage(95);
radgrid.EnableViewState = true;
radgrid.AllowAutomaticInserts = false;
radgrid.AllowAutomaticUpdates = false;
radgrid.AllowAutomaticDeletes = false;
radgrid.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Top;
radgrid.ItemCommand += new GridCommandEventHandler(radgrid_ItemCommand);
radgrid.ClientSettings.Selecting.AllowRowSelect = true;
radgrid.UpdateCommand += new GridCommandEventHandler(radgrid_UpdateCommand);
radgrid.InsertCommand += new GridCommandEventHandler(radgrid_InsertCommand);