Datagrid Columns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

It's selly, but how can I set the width of a column in the datagrid, and to
hide a column!!!?


thanks
 
That's a good example but in my case I have the datagrid already to a dataset
DataGrid1.DataSource = ds.Tables(0)
and I would just to hide one of the columns in my DataGrid1,
I tried this before binding it: ds.Tables(0).Columns.Remove(columnName),
I think it removes it from the table in the dataset and I don't want that I
want only to hide in the datagrid but available in ds.Tables(0).



--
Regads,
Rochdi


Cor Ligthert said:
 

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

Back
Top