HI guys,

I just found out and article how to populate data manually to datagrid ... I wonder if there is anyone out there can help me out here to populate the data from my database to this datagrid. Thanks.. This is the code that i found......

Code:
Dim pls as New DataTable()

Sub Page_Load(sender as Object, e as EventArgs)
    BuildDatae()

  	Datagrid2.DataSource = pls
	Datagrid2.DataBind()
  End Sub


  Sub BuildData()
	Dim dr as DataRow
	
	pls.Columns.Add(new DataColumn("Results", GetType(String)))

    dr = pls.NewRow()
    dr(0) = "My Data row 1."
	pls.Rows.Add(dr)
	
    dr = pls.NewRow()
    dr(0) = "My Data row 2."
	pls.Rows.Add(dr)
 End Sub
Current the data is type manually... is there a way i can populate the data from my database to this datagrid. Thanks