Hi, i added a GridButtonColumn to my grid in the Page_Load event:
GridButtonColumn colEdit = new GridButtonColumn();
colEdit.UniqueName = "Edit";
colEdit.HeaderText = "Edit";
colEdit.Text = "Edit";
RadGrid1.MasterTableView.Columns.Add(colEdit);
When i click on it, i handle the RadGrid1_ItemCommand event:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "Edit")
...
...
}
After the event the GridButtonColumn is empty, why?
Other problem is that the e.CommandName is alway empty, why?
GridButtonColumn colEdit = new GridButtonColumn();
colEdit.UniqueName = "Edit";
colEdit.HeaderText = "Edit";
colEdit.Text = "Edit";
RadGrid1.MasterTableView.Columns.Add(colEdit);
When i click on it, i handle the RadGrid1_ItemCommand event:
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "Edit")
...
...
}
After the event the GridButtonColumn is empty, why?
Other problem is that the e.CommandName is alway empty, why?