Hello All,
Is there a way to merge these two columns? This is what I have right now (please look at the current file). This is how I created these two columns from code-behind
I want to achieve something like this (please look at desired file). I have tried to do the GridCalculatedColumn. And the code for that is
Is there a way to merge these two columns? This is what I have right now (please look at the current file). This is how I created these two columns from code-behind
GridEditCommandColumn EditColumn =
new
GridEditCommandColumn();
this
.RadGrid1.MasterTableView.Columns.Add(EditColumn);
EditColumn.ButtonType = GridButtonColumnType.ImageButton;
EditColumn.UniqueName =
"EditCommandColumn"
;
EditColumn.HeaderText =
"SingleAction"
;
EditColumn.ColumnGroupName =
"test"
;
GridButtonColumn DeleteColumn =
new
GridButtonColumn();
this
.RadGrid1.MasterTableView.Columns.Add(DeleteColumn);
DeleteColumn.CommandName =
"Delete"
;
DeleteColumn.ButtonType = GridButtonColumnType.ImageButton;
DeleteColumn.UniqueName =
"DeleteCommandColumn"
;
DeleteColumn.ConfirmDialogType = GridConfirmDialogType.Classic;
DeleteColumn.HeaderText =
"SingleAction"
;
DeleteColumn.ConfirmText =
"Do you really want to delete?"
;
GridCalculatedColumn calcol =
new
GridCalculatedColumn();
calcol.DataFields =
new
string
[]{
"EditCommandColumn"
,
"DeleteCommandColumn"
};
calcol.Expression =
"{0}-{1}"
;
tableViewProjects.Columns.Add(calcol);
I get an error column [EditCommandColumn] does not exist, which I think makes sense, because it not a data field from the database.
So, is there a way to achieve this. Please help
Thank you in advance
So, is there a way to achieve this. Please help
Thank you in advance