|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
web control DatagridHi all,
how to get a check box in the first column of the data grid as it only shows a:link and a button type control to be inserted. Please help Put in a template column of type <asp:CheckBox id="myCheck"> in the aspx. Or
you can do this programatically before binding (which i prefer) Then reference it via e.Items.FindControl["myCheck"] and assign that to a casted checkbox variable. I am assuming you will run this code in the binding event of your datagrid. Use this to assign initial vals to your checkbox. Also a foreach item loop can be used the same as above to iterate through the datagrid and retrieve the values of the check on a postback -- Show quoteHide quoteDan "jack" <gautams.m***@gmail.com> wrote in message news:1136534571.546911.309050@g49g2000cwa.googlegroups.com... > Hi all, > how to get a check box in the first column of the data grid as it only > shows a:link and a button type control to be inserted. > Please help >
Other interesting topics
WebResource.axd request causing errors
2.0 Custom Membership Provider! Calendar Control Don't show page in browser history GridView and XML problems New to ASP.NET 2.0 ASP.NET process identity does not have read permissions to the global assembly cache Help with inline code? Query Data via SMS What is ASPNETDB.MDF used for? |
|||||||||||||||||||||||