I'm trying to bind an Array to a DataGrid using VB.NET (2008), and I get an error. Array was not one-dimentional array. Any pointers?

DataGridView1.DataSource = arrProv

Size of array: arrProv(4,21)

A suggestion is to convert your array to a datatable, then set the datatable as the data source of the data grid view.

Hope this helps

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.