Hi
I have a webgrid with 2 buttons (column type button): "delete" and "change"
I am using the ClickCellButton event to perform the delete or change operations server side.
My problem is:
The same event seems to be fired when I click "delete" or when i click "change".
How can I check in this event which button has been clicked?
any help is kindly appreciated
In the ClickCellButton event handler, e.Cell gives you a reference to the cell that contains the button you clicked. You can look at e.Cell.Column.Key (or other properties off the column) to determine what action to take.
thanks a lot!