I have an ASPxGridView with several columns and I notice that it renders differently and incorrectly in Internet Explorer 7 but it displays fine in other browsers like Opera, Chrome and Firefox. Every column has a predifined width so the grid does not exceed a maximum established but IE7 renders wider columns. I am attaching a file with the screens of the 4 internet navigators. Please watch the grid at the left side with a header of "CARRITO DE COMPRAS" and you'll see a difference in the width rendered by IE7 and the other browsers. This web form does not use a master page, all of the code is included directly in the final form.
Is this an issue with IE?
Am I doing something wrong?
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Jorge,
I see the problem and it appears because IE uses a different algorithm than other browsers and word wraps the text this way. A possible solution to this problem is to embed the \r\n symbols to the ASPxGridview's data source and thus force manual word wrapping.
Thanks,
Plato
Your answer is not clear to me but I suppose that you talk about "carriage return" and "new line". If this is the case please open the file I attached to the initial post and see the first 2 columns with headers "B" and "E"; such columns contain a little icon each (18 x 18 pixels). Also note that the third column with header "#" includes only a integer quantity. The same happens with the last 3 columns (fifth, sixth and seventh with headers "Precio", "Descto" and "Impte" respectively) which contain a decimal amount.
How would "\r\n" work in this case?
So far there is only one column left, the fourth one with header "Platillo" which is a string, it seems fine. I do not see much space in its sides, it looks pretty exact.
In conclusion, I see that the columns containing numeric and graphic data are formatted incorrectly. I will look for a way to convert numeric data to string. Regarding the columns with the icons I do not have an idea of what to do yet but I'll think about it.
I will appreciate any comment from you.
Hi Jorge,
Hm, I do not quite understand what you mean by incorrect formatting of graphic and numeric data. Could you please clarify this? Also, please note that the ASPxGridView renders the same hml code for different browsers, and browsers interperet it differently. I see that you customized the gridView. Did you use CSS? If so, could you please send us a small sample project showing this glitch? We will try to help you.
Thanks,
Plato