The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator 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.