Click to See Complete Forum and Search --> : How to change the column width property of DataGrid in run time


rskshiva
01-23-2005, 10:52 PM
Hi,

In VB.Net, I need to assing the width for columns of datagrind in run time. I don't know how to do this.

Suggestions are appreciated.

Regards,
Siva R

PeOfEo
01-24-2005, 01:38 PM
You can apply a style sheet to the column and then modify the style sheet on run time, and you can also just say
columnid.width = something or other.

NashCA
01-29-2005, 09:46 AM
well it can also be done as :-

Datagrid1.column.columid.width = whatever

I am assuming that the grids name is datagrid1 here

Happy surfing;