Mar 30, 2011, 12:54 PM
create groupcommands dynamically
hi,
i have a question, how can i create a groupcommand dynamically with code in c#?
i have this code but doesn't work:
pardonme for the english, i know that is bad.
thanks
i have a question, how can i create a groupcommand dynamically with code in c#?
i have this code but doesn't work:
ImageCommandColumn.Config commcol = new ImageCommandColumn.Config();
commcol.Hidden = true;
commcol.GroupCommands.Add(new GroupImageCommand { CommandName = "Gráfica", Icon = Icon.ChartBar });
commcol.PrepareCommand.Fn = "prepareCommand";
commcol.PrepareCommand.Fn = "prepareGroupCommand";
//commcol.GroupCommands.Add(new CommandFill { });
grd1.ColumnModel.Columns.Add(new ImageCommandColumn(commcol));
please help me!pardonme for the english, i know that is bad.
thanks
Last edited by geoffrey.mcgill; Apr 10, 2011 at 6:51 PM.
Reason: please use [CODE] tags