Imports System
Imports System.Data
Imports System.Configuration
Imports System.Collections
Imports System.Web
Imports System.Web.Security
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.WebControls.WebParts
Imports System.Web.UI.HtmlControls

Partial Public Class DataGrid_DataLarge
    Inherits System.Web.UI.Page
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        'Define SQL query
        Dim SqlQuery As String = "SELECT ContactID, FirstName, LastName, ModifiedDate FROM Contacts ORDER BY ContactID"

        'Get DataTable (MS Access Database)
        Dim myDataSource As DataTable = DataBase.GetDataTableOleDb(SqlQuery, "~/DataGrid/DataBases/Large.mdb")


        'Set the data source
        myDataGrid.KeyFieldName = "ContactID"
        myDataGrid.DataSource = myDataSource
        myDataGrid.DataBind()

    End Sub
End Class