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.
My first question is if I have a grid with a cell that has a push button, what is the difference between using PushButtonClick and CellButtonClick to trap the click event?
Secondly, if I click on a PushButton in the cell before I click on an other cell and what the current row, it is not being set in the grid.CurrentCell.RowIndex. So if I click on row 3''s pushbutton, I get a -1 from grid.currentcell.rowindex. How can I fix this.
I am using VB.net.
Thanks
Justin
ADAdministrator Syncfusion Team January 7, 2004 08:36 PM UTC
CellButtonClicked is fired for any cell button (like a combobox button including a pushbutton).
PushButtonClick is only fired for pushbuttons. This event is also fired when the spacebar is pressed if the pushbutton cell has focus. CellButtonClicked is not fired in this case.
If you want to set the currentcell when a PushButton is clicked, you can handle the PushButtonClick event, and in your handler, call:
this.gridControl1.CurrentCell.MoveTo(e.RowIndex, e.ColIndex);