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.
Unfortunately, activation email could not send to your email. Please try again.

PushButton CellType in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

8604 Nov 13,2003 01:18 PM Nov 13,2003 05:56 PM Windows Forms 1
loading
Tags: GridControl
Susie Smith
Asked On November 13, 2003 01:18 PM

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

Sean Greer
Replied On November 13, 2003 05:56 PM

> 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;