int[] arr = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; dataGridView1.AutoGenerateColumns = true; dataGridView1.DataSource = from ar in arr select ar;
try { int[] arr = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; dataGridView1.AutoGenerateColumns = true; BindingSource b = new BindingSource(); b.DataSource = from ar in arr select ar; dataGridView1.DataSource = b; } catch { // handle your own errors :) }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)