good morning
before that, i have a project developed by Microsoft Visual Studio 2005
to insert data in textbox into datagrid i uses coding as below:
Sub Bind_Data()
GridView1.DataSource = GetData()
GridView1.DataBind()
End Sub
Function GetData() As DataTable
Dim dt As New DataTable
Dim i As Integer = 0
Dim dr As DataRow
Dim j As Integer = 0
dt.Columns.Add(New DataColumn("item", GetType(Integer)))
dt.Columns.Add(New DataColumn("location", GetType(String)))
dr = dt.NewRow
dr(0) = txtItem.Text
dr(1) = txtFrom.Text
dt.Rows.Add(dr)
Return dt
End Function
now, i have to re-do the same thing in Microsoft Visual Studio .NET 2003 and i'm nt familiar with Microsoft Visual Studio .NET 2003
can anyone help me to modified the code above so that i can use in Microsoft Visual Studio .NET 2003?
thank you~~
Reply