Rowupdating code for gridview


aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.

In this article we create a Gridview from database and add some additional operations such a add, edit and delete data in the Grid View control.

Open() Dim cmd As New Sql Command("insert into stores(stor_id,stor_name,stor_address,city,state,zip) values('" instorid.

In this article I will show you that how you can validate the controls which are inside the Grid View control.

For this you can add the item dynamically inside the Grid View_Row Data Bound event.

Don't forget to assign the value property of the Drop Down List to "Select an item" or any other text you like.

You will also notice that when you loose focus from the control the validation control event will be fired.