We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

PushButton CellType in GridDataBoundGrid

How do I add a pushButton CellType in a GridDataBoundGrid? The documentation only show how to do this for a grid control, which does not work on the GridDataBoundGrid. thanks

1 Reply

SG Sean Greer November 13, 2003 10:56 PM UTC

> How do I add a pushButton CellType in a GridDataBoundGrid? > > The documentation only show how to do this for a grid control, which does not work on the GridDataBoundGrid. > > thanks > Susie, I have no problem adding a PushButton cell type to a GDBG. Here is the code that I use: GridBoundColumn gbc = new GridBoundColumn(); gbc.StyleInfo.CellType = "PushButton"; gbc.StyleInfo.Description = "..."; gbc.HeaderText = "Edit"; m_sdgAccountGrid.GridBoundColumns.Add(gbc); // ... add others that are mapped Note that this is done prior to setting the DataSource property of the grid. HTH, Sean

Loader.
Live Chat Icon For mobile
Up arrow icon