Datagrid and webservice

B

Brian Cesafsky

Hello!

I am binding an arrayList that is returned to my CE 5.0 application (pocket
pc) which is coming from a call to a web service.

1) How do you set one of the columns to be hidden? I assume you do it
after setting the .DataSource of the grid, I just don't know how.

2) How do you set the widths of the columns so they fit the entire grid
(autofit?)
 
B

Brian Cesafsky

I tried the code example, but I get an "InvalidCastExcpetion" error on this
line...
DataTable dataTable = (DataTable)dataGrid.DataSource;

my datasource is an array, so I'm not sure what the invalid cast is
happening?

any thoughts?

Thanks!
 

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