Results 1 to 2 of 2

Thread: How to clear the datagrid in vb.net

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2001
    Location
    Canada
    Posts
    36

    How to clear the datagrid in vb.net

    Hi,

    In vb6, we have the clear method with the datagrid control. I could not find the same in vb.net.

    How can I clear the datagrid control before I fill it in vb.net?

    Thanks,

    James

  2. #2
    Junior Member
    Join Date
    Dec 2003
    Location
    California
    Posts
    19
    If you're binding your datagrid to a dataset or data table, the you would clear the dataset/table and refresh the datagrid. Same would apply for a dataview bound to a dataset.
    <----------------------------->
    "In the immortal words of Socrates, who said "'I drank what?!'"

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