Why I get “System.Data.DataRowView” instead of real values in my Listbox?

前端 未结 12 804
一向
一向 2020-11-29 08:24

I\'m hoping someone can help. But whenever I run my code and try to view a highscore all I get back in my listbox is System.Data.DataRowView.

12条回答
  •  天命终不由人
    2020-11-29 09:17

    Set your lstNames.DisplayMember and lstNames.ValueMember fields.

    Gets or sets the property to display for this ListControl.


    Gets or sets the path of the property to use as the actual value for the items in the ListControl.

    This should solve your problem..

提交回复
热议问题