Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Copying A Value From Cell in Datagridview

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    UK
    Posts
    489

    Resolved [RESOLVED] [2005] Copying A Value From Cell in Datagridview

    Hi

    Basically I need to store the values of a few cells in varibles, however I cant remember how to target a specific cell, I have tried several different methods but they havent worked.

    Help appreciated.
    Learning C♯

    Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)

  2. #2
    Hyperactive Member gnaver's Avatar
    Join Date
    Jul 2005
    Location
    Denmark/Sweden
    Posts
    289

    Re: [2005] Copying A Value From Cell in Datagridview

    try this

    vb Code:
    1. Dim yourRow As Integer = 1
    2.         Dim YourCell As Integer = 2
    3.         Dim copy As String
    4.         copy = DataGridView1.Rows(yourRow).Cells(YourCell).Value

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    UK
    Posts
    489

    Re: [2005] Copying A Value From Cell in Datagridview

    Yep, thats a good example, problem solved.
    Learning C♯

    Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width