Wrapping problem within a datagrid
Hi everyone,
I'm having a problem and am at wits end on how to resolve it.
I have a webform that has a datagrid on it that is dynamically being populated depending on what fields are being selected within a dropdown list.
1- user selects field
2- select statement is created and the db gets queried
3- result is put into a dataview (for multi sort purposes)
4- datagrid is created.
** the datagrid itself is encoded within a div tag (to allow for scrollbars)
The problem is that no matter what I try I cannot prevent the datagrid from wrapping certain columns when the grid exceeds the width of the page. (such as date columns)
Things I've checked:
Div Tag: I made sure to put the nowrap attribute
Datagrid: Within the code behind added the itemstyle and alternatingitemstyle wrap = false attribute.
The only way I've managed to not get any wrapping was by having the columns defined within the datagrid and have each columns wrap removed. Unfortunately since I never know what columns will be pulled at any given time from the query, I cannot have the columns prebound. (get an error saying column X was not found.)
*Pulling the whole database and only displaying the columns that are requested is not an option due to the quantity of data.
Any help / suggestions would be greatly appreciated.
Tar