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.
I need to use a push button cell type in my grouping grid.
How do I set the text in the push button? And how do I define an action on click of a push button in a particular cell?
Do you have a sample that does this?
Also is there a sample where you have added a cell type of a link button?
Thanks.
STstanleyj Syncfusion Team January 4, 2006 09:44 AM UTC
Hi Anupama,
The text on the PushButton is set through the Description property. TableControlPushButtonClick is raised when a PushButton ic clicked. The cell information can be collected from that handler.
private void gridGroupingControl1_TableControlPushButtonClick(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellPushButtonClickEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex);
Console.WriteLine(e.TableControl.TableDescriptor.Name +" "+ style.TableCellIdentity.Column.Name +" "+e.Inner.RowIndex);
}
>> Also is there a sample where you have added a cell type of a link button?
Refer this sample in Syncfusion\Essential Studio\4.1.0.10\windows\Grid.Windows\Samples\CellTypes\LinkLabelCells to see if that helps.
Best regards,
Stanley