When working with a ListBox control, you can use the ___________ property to set the data field that serves as the value for each item.

  • DataTextField
  • DataValueField
  • DataSource
  • DataMember
The correct option is 2. DataValueField. This property is used to set the data field that serves as the value for each item in a ListBox control. It is essential for data binding and displaying meaningful values to users.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *