Dear all
I had put a check box as a template control inside a web grid and its working fine.
The problem comes when I tried to get the “ItemCommand” event. With the check box as template control the “ItemCommand” event is not raising but when I changed the check box to a button the event gets worked fine.
Is there any way by which I can raise the “ItemCommand” event from a web grid with a check box as a template control.
Regards
Rajesh Kamalakshan
Rajesh,
The CheckBox does not have "CommandName" or "CommandArgument" properties, and does not support the Command Event pattern. You'll need to either manually hook up event listeners to your checkbox instances, or you can use the built-in CheckBox column type of the grid.
Dear Tony
If I am using the build in Check box colum type of the grid ,will i be able to trigger a server post back when the user clicks on the check box?