Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,086 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,772 people online right now. Registration is fast and FREE... Join Now!




Add GridView Text into Database

 
Reply to this topicStart new topic

Add GridView Text into Database

sonia.sardana
2 Jun, 2008 - 01:52 AM
Post #1

New D.I.C Head
*

Joined: 1 Jun, 2008
Posts: 37

How to Insert GridView Text into the database....
User is offlineProfile CardPM
+Quote Post

VbProgrammer08
RE: Add GridView Text Into Database
2 Jun, 2008 - 04:06 AM
Post #2

New D.I.C Head
*

Joined: 31 May, 2008
Posts: 9



Thanked: 1 times
My Contributions
I'm not sure what you mean, but you can add rows using this function.

Say you have a 3 column grid named MyGrid. You can add data like this:
CODE

    Private Sub AddToGrid(ByVal column1, ByVal column2, ByVal column3)
        Dim row As String() = {ByVal column1, column2, column3}
        Me.MyGrid.Rows.Add(row)
    End Sub


Then you call it like this-
CODE

AddToGrid("Text in col 1", "Text in col 2", "Text in col 3")


Hope that helps smile.gif

This post has been edited by VbProgrammer08: 2 Jun, 2008 - 04:08 AM
User is offlineProfile CardPM
+Quote Post

sonia.sardana
RE: Add GridView Text Into Database
2 Jun, 2008 - 07:16 AM
Post #3

New D.I.C Head
*

Joined: 1 Jun, 2008
Posts: 37

Frnd this is the code to add into the DataGrid ,I want to add the GridView Text into the Database..
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:49PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month