T
tshad
I am building my DataGrid dynamically and am trying to set the width but am
having a problem with it.
If I do:
DataGrid1.Columns(0).Width = New Unit("65px")
I get the error:
'Width' is not a member of 'System.Web.UI.WebControls.DataGridColumn'.
Or
Dim column as BoundColumn = new BoundColumn()
column.Width = new Unit("100px")
I get the error:
'Width' is not a member of 'System.Web.UI.WebControls.BoundColumn'.
Or
column.ItemStyle-Width = new Unit(100px)
I get the error:
Method arguments must be enclosed in parentheses
How can I set the width of the column? I don't want the system to decide
which size to make the columns.
Thanks,
Tom
having a problem with it.
If I do:
DataGrid1.Columns(0).Width = New Unit("65px")
I get the error:
'Width' is not a member of 'System.Web.UI.WebControls.DataGridColumn'.
Or
Dim column as BoundColumn = new BoundColumn()
column.Width = new Unit("100px")
I get the error:
'Width' is not a member of 'System.Web.UI.WebControls.BoundColumn'.
Or
column.ItemStyle-Width = new Unit(100px)
I get the error:
Method arguments must be enclosed in parentheses
How can I set the width of the column? I don't want the system to decide
which size to make the columns.
Thanks,
Tom