By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,061 Members | 1,539 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,061 IT Pros & Developers. It's quick & easy.

Datagrid Columns

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Mike" <Mi**@discussions.microsoft.com> schrieb:
how can I set the width of a column in the datagrid
<URL:http://msdn.microsoft.com/library/en-us/dv_vstechart/html/vbtchformattingwindowsformsdatagridvisualbasicprim er.asp>
-> "Setting Column Width"

and to hide a column!!!?


Customizing the Windows Forms DataGrid
<URL:http://msdn.microsoft.com/library/en-us/dnwinforms/html/wnf_custdatagrid.asp>
-> "Customization 1: Columns and Column Order"

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
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

Nov 21 '05 #3

P: n/a
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


Nov 21 '05 #4

P: n/a
Rochdi,

Did you search furter on our website?
(however than not the columnwidth therfore I showed this one before)

http://www.windowsformsdatagridhelp....3-a3539697edbd

I hope this helps,

Cor
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.