C# Set combo item with selectedValue

前端 未结 6 696
生来不讨喜
生来不讨喜 2020-12-11 03:55

I am dynamically creating a combobox like this:

public Control GenerateList(Question question)
{
    // Get a list with answer possibilities
    List

        
6条回答
  •  感情败类
    2020-12-11 04:22

    Make sure QuestionAnswer has public accessors corresponding (same name) to the Display/Value Members you use.

提交回复
热议问题