I would think that C# would have a slicker way to display an array in a
Datagrid control. From the documentation I get that an array can be a data
source for a Datagrid object. But when I set the Datagrid source to the
array, nothing is displayed.
Can you provide the bit of code that you're using to hook up the datagrid?
You should be able to provide any IList implementation to the data source
property.
What I'm doing is very simple. so I'm probably leaving something out
private System.Windows.Forms.DataGrid datagrid;
double[] x = new double[10];
datagrid.DataSource = x;
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.