DataGridView Object Databinding Issue “Index -1 does not have a value”

后端 未结 4 1252
借酒劲吻你
借酒劲吻你 2020-12-21 04:41

I am using a set of DataGridViews (dgv) to display a class\'s members via properties. I use the dgv so that the user can edit the value of the member right in the view (so

4条回答
  •  [愿得一人]
    2020-12-21 05:06

    I just recently ran into a very similar issue of "Index -1" in a very simple application that was doing a "display only" of selectable data sets. It was completely my fault as I had used List which worked just fine until suddenly it didn't. Switching to BindingList resolved it.

提交回复
热议问题