S
Scott
I having a problem where I need to turn off the wrapping feature for
all columns in my datagrid. Example code would be:
<aspataGrid id="ResultGrid" runat="server"
AutoGenerateColumns="true">
<ItemStyle Wrap="false"></ItemStyle>
<Columns>
</Columns>
</aspataGrid>
I understand the above code does not turn the wrapping feature off on
the <td> level, but only the <tr> level which is not what I want. I
also understand that this is a Microsoft bug and in order to fix it, I
have to add the asp:BoundColumn along with the ItemStyle
(wrap="false") for each column. While this is ok if you know what the
columns are going to be, but in my case I'm dynamically building
columns based on what table in the database the user has chosen. So I
don't know what the columns will be or how many.
Has anybody come across this and if you have, can you give me some
hints or examples which would allow me to turn wrapping off for all
columns.
Thanks.
all columns in my datagrid. Example code would be:
<aspataGrid id="ResultGrid" runat="server"
AutoGenerateColumns="true">
<ItemStyle Wrap="false"></ItemStyle>
<Columns>
</Columns>
</aspataGrid>
I understand the above code does not turn the wrapping feature off on
the <td> level, but only the <tr> level which is not what I want. I
also understand that this is a Microsoft bug and in order to fix it, I
have to add the asp:BoundColumn along with the ItemStyle
(wrap="false") for each column. While this is ok if you know what the
columns are going to be, but in my case I'm dynamically building
columns based on what table in the database the user has chosen. So I
don't know what the columns will be or how many.
Has anybody come across this and if you have, can you give me some
hints or examples which would allow me to turn wrapping off for all
columns.
Thanks.