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.
ADAdministrator Syncfusion Team January 7, 2004 03:36 PM
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: