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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PushButton caption not binded with the tabale values - GDBG

Thread ID:





43603 Apr 27,2006 05:05 AM UTC Apr 27,2006 05:50 AM UTC WinForms 1
Tags: GridControl
Ramachandran m s
Asked On April 27, 2006 05:05 AM UTC

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 05:50 AM UTC

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.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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