Go to DotNetFunda.com
 Online : 28 |  Welcome, Guest!   Login
 
Home > Forums > ASP.NET > insert data in textbox into datagrid ...

  • Download the OOPS, ASP.NET and ADO.NET Training Videos for FREE, click here.

ASP.NET Forum



insert data in textbox into datagrid

Author: Gee | Posted on: 7/2/2009 | Category: ASP.NET | Views: 1139 | Level: Starter | Status: [Member] |

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

Interesting?   Share and Bookmark this

 Responses

Majith  
Posted on: 7/3/2009 2:29:04 AM
Level: Starter | Status: [Member] | Reply

Greetings,

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.

Thanks.

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

Latest Posts

More ... 

 Write New Post


Advertisement

About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)