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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PushButton CellType in GridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

8604 Nov 13,2003 06:18 PM UTC Nov 13,2003 10:56 PM UTC WinForms 1
loading
Tags: GridControl
Susie Smith
Asked On November 13, 2003 06:18 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

Sean Greer
Replied On 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

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.

Warning Icon 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.Close Icon

;