Hi
I have a webgrid with a cell style button.
the cellbuttondisplay is set on ALWAYS and in the inizializerow event i use this code to set the button caption, but it does not work when the user add a NEW row.....
{
e.Row.Cells.FromKey("cmdPrint").Value = "Print";
}
Hi,
Have you set the column type to button? Here is a suggestion:
e.Layout.Bands[0].Columns[1].CellButtonStyle.BackColor = System.Drawing.Color.Red; //sets the back color of the cell
Opps, I missed including the AddRow event in the previous post. Here is what it looks like.
//e.Row.Cells.FromKey("Button").Value = "Print"; or
UltraWebGrid1_InitializeRow(sender, e);
This should take care of the problem.