Binding an array of custom objects to a DataGrid

G

Guest

I have an array of custom objects (Dim MyAry() As MyCustomObject) and I want to bind this to a DataGrid. It all works fine in so far as it correctly binds ALL of the properties from MyCustomObject after I set the DataSource of the DataGrid. My question is, is there any way to control the order i which they display in the DataGrid AND can I "turn-off" showing some of the properties ?

It seems like the .DataBindings collection might be the place to start, but this seems to only want to Bind things to the Properties of the DataGrid itself as opposed to controlling what shows in the grid

Thanks in Advance !

LES
 

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.

Ask a Question

Top