I have a simple List<string>
and I'd like it to be displayed in a DataGridView
column.
If the list would contain more complex objects, simply would establish the list as the value of its DataSource
property.
But when doing this:
myDataGridView.DataSource = myStringList;
I get a column called Length
and the strings' lengths are displayed.
How to display the actual string values from the list in a column?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…