hello
i have the following problem. i have a radgrid which is totally created at runtime and i need to add two ways of editing
i mean, i added a GridEditCommandColumn and then, because only one GridEditCommandColumn can be added to radgrid, i created a GridButtonColumn
here is the code:
GridEditCommandColumn eCol = new GridEditCommandColumn();eCol.HeaderStyle.Width = Unit.Pixel(30);eCol.UniqueName = "EditCommandColumn";eCol.ItemStyle.CssClass = "edit_btn";eCol.UpdateText = "Save changes";grid.MasterTableView.Columns.Add(eCol);GridButtonColumn cCol = new GridButtonColumn();cCol.ButtonType = GridButtonColumnType.LinkButton;cCol.UniqueName = "CorrectColumn";cCol.ItemStyle.CssClass = "edit_btn";cCol.CommandName = "Edit";cCol.Text = "Correct";grid.MasterTableView.Columns.Add(cCol);the problem rises when in the radGrid_ItemCommand event i need to execute two different operations due to which button has been clicked
here is the pseudocode:
if (e.CommandName == "Edit"){ //get button name or id}if (e.CommandName == "Update"){ if (button_name=='Edit') do exec 1 else if (button_name=='Correct') do exec 2}how can i solve ?
thanks in advance
