424,054 Members | 1,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,054 IT Pros & Developers. It's quick & easy.

changing datagrid column width dynamically

P: n/a
How do I change the datagrid column width dynamically when the grid's being
loaded?
VM
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi ,

Below you will find the code I'm using in a web app, you do not especify if
you are on a asp.net or a windows app but for your others post I assume
that.

this.locationgrid.Columns[2].Visible = this.locationgrid.Columns[3].Visible
= false;

this.locationgrid.Columns[1].ItemStyle.Width= 460;
There I set as not visible two columns and set the width of the other to the
size of the sum of the three. Later I set it back using a similar code.

Hope this help,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

<VM> wrote in message news:ey**************@TK2MSFTNGP12.phx.gbl...
How do I change the datagrid column width dynamically when the grid's being loaded?
VM

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.