G
Guest
Hi,
I have a form that has a Datagrid. The datagrid is use to display data from
different table selected by user onme at a time.
I can programatically customized the Column's Title of the DataGrid by
specifying alias in the SQL statement.
Ex : SELECT strWhseID as [Warehouse ID], strType As [Warehouse Type] from
tblWarehouse
But, I have difficulty in adjusting their width programatically.
I have try creating a DataGridTextBoxColumn Collection and adding it into
the datagrid tablestyle collection and subsequently adding it into the
datagrid tablestyle collection but it just doesn't work.
Anyone help?
I have a form that has a Datagrid. The datagrid is use to display data from
different table selected by user onme at a time.
I can programatically customized the Column's Title of the DataGrid by
specifying alias in the SQL statement.
Ex : SELECT strWhseID as [Warehouse ID], strType As [Warehouse Type] from
tblWarehouse
But, I have difficulty in adjusting their width programatically.
I have try creating a DataGridTextBoxColumn Collection and adding it into
the datagrid tablestyle collection and subsequently adding it into the
datagrid tablestyle collection but it just doesn't work.
Anyone help?