Find Control("cbo Brand"), Drop Down List) If cbo Brand Is Not Nothing Then ' You can apply condition here cbo Brand.In this article, we will explore how to add, update, delete and select a record from sql server database using gridview control in a simple way.
I will be using Sql objects directly into methods to keep the example simple and straight forward.
First, we’ll implement a method to databind the Grid View, which will be called whenever databinding needs to be performed.
In this article, I am going to explain how to manipulate data using Grid View control.
The example shown here is for a Grid View, but the same types of event handlers must be implemented in roughly the same way for other data controls including the Form View, Details View, and List View. This is the final Grid View markup, so you can see the event handlers we’re going to implement.
We’ll start with binding data to the Grid View, then build up functionality from there.