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.
How can i set the text of a pushbutton column in a bound grid? Actually, it is a bound column, and I expected the text value to appear on the button, but seems to me it just drawn over it.
ADAdministrator Syncfusion Team March 12, 2003 03:54 AM
The text displayed in a PushButton cell is the GridStyleInfo.Description property. In a databound grid, the values from the datasource go into the GridStyleInfo.Text property, and so this is why you don't see the datasource value on the PushButton. If you want to see this, handle the PrepareViewStyleInfo event, and if e.Style.CellType equals "PushButton", then set e.Style.Description equal to e.Style.Text.