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 caption not binded with the tabale values - GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

43603 Apr 27,2006 01:05 AM Apr 27,2006 01:50 AM Windows Forms 1
loading
Tags: GridControl
Ramachandran m s
Asked On April 27, 2006 01:05 AM

Hi, I use the grid data bound grid control and it is bound to a datatable. Also in this one of the binded column has a pushbutton cell style. Now, in this column I have some text that must be the caption of the pushbuttons. Can this be done simply or do I have to use the QueryCell event to populate it manually ? Thanks & Regards, Ramachandran m s.

Administrator [Syncfusion]
Replied On April 27, 2006 01:50 AM

Hi Ramachandran, The PushButton text/caption must be set in the QueryCell event handler. Below is a code snippet. private void Model_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e) { if(e.ColIndex == this.gridDataBoundGrid1.Binder.NameToColIndex("ColumnName") && e.Style.CellType == "PushButton") e.Style.Description = e.Style.CellValue.ToString(); } Let us know if you need any further assistance. Regards, Calvin.

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.

;