Monday, August 16, 2010

How to add a click event on a datagrid in ASP.NET?

Sir I m working on Datagrid Component in Asp.net


I want to add a click event on that


how can i do this


please help me or send any link for getting the info.





actually i want to add a click event in a cell of datagridHow to add a click event on a datagrid in ASP.NET?
hi there. Sadly there is now click event in datagrid. the closest will be creating a button column inside the datagrid, then you can specify the type as button instead of a hyperlink..





also take note that the only way to manipulate the data inside the datagrid is by the event itemdatabound. you may try adding a click in a datagrid but it will respond when you click any item in the datagrid. the only control is by dataitembound event. may i know your purpose why you wanted a click event in a datagrid?

No comments:

Post a Comment