When using the second or third approach, you can refresh the grid content inside an Update Command event handler.
The following examples illustrate these techniques. They both use the same grid declaration: Private Read Only Property Grid Source As Data Table Get Dim obj As Object = Me.
View State("_gds") If (Not obj Is Nothing) Then Return CType(obj, Data Table) Else Dim conn As New Ole Db Connection"Provider=Microsoft.
Select Command = New Ole Db Command("SELECT TOP 10 Order ID, Employee ID, Order Date, Ship Name FROM Orders", conn) Dim table As New Data Table() conn.
Stay tuned and stay connected for more technical updates.
In the first step, check your controls and rename them and set some basic properties of the Grid View, such as Grid View's templates and events. Copy the Page_Load and Bind Grid View methods of the sample and paste them to your Data From Data cs file, and navigator to the Property panel and switch to Event.