dcsimg
Results 1 to 4 of 4

Thread: Rows collection cannot be programmatically cleared -- Error

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2017
    Posts
    12

    Rows collection cannot be programmatically cleared -- Error

    Hello All ......


    I Have Bound DataGridView and i tried to clear it before get record ihave tried :

    Code:
    DGV.Rows.Clear

    And

    Code:
    DGV.Datasorce=Nothing
    And

    Code:
    dt.clear

    None Or Then Works iand iam getting this error


    Rows collection cannot be programmatically cleared when the DataGridView control is data-bound to anything else than an IBindingList that supports change notification and allows deletion.


    Name:  error.jpg
Views: 918
Size:  23.3 KB
    Last edited by Salem141; Feb 20th, 2018 at 09:02 AM.

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width