1 Replies - 174 Views - Last Post: 20 February 2018 - 07:11 AM Rate Topic: -----

#1 salem4775   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 26-November 16

Rows collection cannot be programmatically cleared -- Error

Posted 20 February 2018 - 07:01 AM

Hello All ......


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

DGV.Rows.Clear 




And

DGV.Datasorce=Nothing


And

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.

Posted Image

MOD: removed hijack link

Is This A Good Question/Topic? 0
  • +

Replies To: Rows collection cannot be programmatically cleared -- Error

#2 andrewsw   User is offline

  • RequestedRangeNotSatisfiable
  • member icon

Reputation: 6554
  • View blog
  • Posts: 26,569
  • Joined: 12-December 12

Re: Rows collection cannot be programmatically cleared -- Error

Posted 20 February 2018 - 07:11 AM

What is your DGV bound to? How is it bound?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1