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 [MVP]" wrote:
Rochdi,
http://www.windowsformsdatagridhelp....6-3300b2215049
I hope this helps,
Cor
"Mike" <Mi**@discussions.microsoft.com> schreef in bericht
news:1A**********************************@microsof t.com... Hi,
It's selly, but how can I set the width of a column in the datagrid, and
to
hide a column!!!?
thanks
--
Regads,
Rochdi