V
Veeves
I would like to change the width of a datagrid column at run time.
I have noticed when creating a datagrid, if the header text is shorter
than the data in the column, then the column width set by the framework
is only wide enough to accomodate the data. The data is packed so closly
together
it is hard to read.
I have tried changing this in the dg_itemdatabound event but ran into a
problem. The e.Item.Cells(1).Width property is in units and it seems it
cannot be cast into an interger for manipulating.
So is there a way to change the width of a datagrid column or more
specifically make the column a little wider than the data
I have noticed when creating a datagrid, if the header text is shorter
than the data in the column, then the column width set by the framework
is only wide enough to accomodate the data. The data is packed so closly
together
it is hard to read.
I have tried changing this in the dg_itemdatabound event but ran into a
problem. The e.Item.Cells(1).Width property is in units and it seems it
cannot be cast into an interger for manipulating.
So is there a way to change the width of a datagrid column or more
specifically make the column a little wider than the data