Results 1 to 2 of 2

Thread: [2008] DataGridView Best Practices Question

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2005
    Location
    California
    Posts
    36

    [2008] DataGridView Best Practices Question

    I'm updating a datagrid with continually changing information, and want the same row to be overwritten each time new data is received. Currently I'm doing this:

    Code:
    Me.DataGridView1.Rows.Clear()
    Me.DataGridView1.Rows.Add(row0)
    Is there a more efficient way to do this? A method that updates a row, instead of having to delete and add?

    Thanks in advance.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,344

    Re: [2008] DataGridView Best Practices Question

    vb.net Code:
    1. Me.DataGridView1.Rows(0).SetValues(myObjectArray)

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