CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    Altamonte Springs, FL
    Posts
    25

    DataGrid Question

    OK, I know it's simple (at least I hope), but I can't seem to find an answer....

    How do I empty/clear/reset a DataGrid control

    The only thing I can think of right now to do is set the databinding to an empty dataset. It seems to work, but is this the proper way of achieving what I want?

    Thanks.

    Charlie

  2. #2
    Join Date
    Jan 2003
    Location
    Amsterdam, Netherlands
    Posts
    97
    Setting the property .Datasource = Nothing will clear the grid

  3. #3
    Join Date
    Aug 2002
    Location
    Altamonte Springs, FL
    Posts
    25

    Thanks!

    Thanks. I guess I was almost there.

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

Featured