PushButton caption not binded with the tabale values - GDBG

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.

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Up arrow icon