A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.
Microsoft is conducting an online survey to understand your opinion of the Technet Web site.
Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.
By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.
Now I will show you the C# code behind file of the above ASP.
In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.
Editing the Grid View control can be an incredibly easy feature to add for certain database tables, especially those who have no foreign key associated and can easily be edited through the use of a standard Text Box web control as shown in the figure below: 1.