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 do I add a pushButton CellType in a GridDataBoundGrid?
The documentation only show how to do this for a grid control, which does not work on the GridDataBoundGrid.
thanks
> How do I add a pushButton CellType in a GridDataBoundGrid?
>
> The documentation only show how to do this for a grid control, which does not work on the GridDataBoundGrid.
>
> thanks
>
Susie,
I have no problem adding a PushButton cell type to a GDBG. Here is the code that I use:
GridBoundColumn gbc = new GridBoundColumn();
gbc.StyleInfo.CellType = "PushButton";
gbc.StyleInfo.Description = "...";
gbc.HeaderText = "Edit";
m_sdgAccountGrid.GridBoundColumns.Add(gbc);
// ... add others that are mapped
Note that this is done prior to setting the DataSource property of the grid.
HTH,
Sean