insert data in textbox into datagrid

Posted by Gee under ASP.NET on 7/2/2009 | Views : 8022 | Status : [Member] | Replies : 1
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()
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


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~~


Posted by: Majith on: 7/3/2009 [Member] Starter


Iam not sure what are the difficulties you found in ASP.NET1.1 you can add the DataGrid instead of Gridview and the bind the data table .

If you find any issues let me know.


Gee, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response