I have seen many identical or similar questions in the forum: How do I place check boxes, text boxes, etc. in every line of my DataGrid? How do I update their values? The answer is quite simple. In this article, I will show you how to complete it. We all know that DataGrid is a very powerful tool. According to my experience, in 90% of time, DataGrid is used to display data and may edit a line of data once. At some point, you may need to edit multiple lines, or even all data. A practical example is that in the application of online sales items, customers may change one or more items in their basket, click the check box to remove the goods they don't want. In this example, I wrote a simple WebForm to manage the list of contacts stored in XML. This requirement is very simple: with the ability to add new contacts, editing / deleting existing contacts. Users can modify or delete multiple contacts at a time, and I also allow users to sort the data grids according to their selected columns. My example is written in C #. If you prefer the VB versions of these code, there are two formats in the download file. Contacts.xml This example is very simple and intuitive. Because it is very simple, I have not created a plan. XML Version = "1.0" Standalone = "YES"?>
)%> '> Asp: textbox> itemtemplate>