I'm stuck trying to set widths for individual columns in a datagrid filled from a datatable.
Any help would be appreciated.
Printable View
I'm stuck trying to set widths for individual columns in a datagrid filled from a datatable.
Any help would be appreciated.
PHP Code:
'The important line of code for me was inititializing the the datagrid. The datagrid can be more than 100%.
dg.Width = Unit.Percentage(300)
'Then when you create your columns you can specifiy the percentage of 300 you want.
dg.Columns(0).ItemStyle.Width = Unit.Percentage(2)
'In this case column 0 is 2% or the 300 total width