Datagrid and webservice

  • Thread starter Thread starter Brian Cesafsky
  • Start date Start date
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?)
 
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!
 
Back
Top