We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

DataboundGrid Cell Button

Hi, I have a button column on my databound grid that when pushed I retrieve the row and column index to print a related document. The problem is that I am using Me.Grid.CurrentCell to get the current row index, if the user doesnt click somewhere else in the row before clicking the button then the currently selected cell is the top row causing the wrong document to be printed. Is there a way I can detect the row at which the current button is being clicked or move the selcted row immeadiatly the button is clicked? Thanks, Mark (vb.net)

1 Reply

AD Administrator Syncfusion Team August 2, 2004 02:36 PM UTC

Are you handling the grid.CellButtonClicked event to get the click on the cell. If so, the e.RowIndex value should hold the row index of the clicked cell.

Live Chat Icon For mobile
Up arrow icon