tripps Posted October 15, 2003 Posted October 15, 2003 Hi, I have set ItemStyle-Wrap="True" and ItemStyle-Width="100", the width of my column seems to stay fixed at 100 pixels as long as the data in that column is less than 100 pixels wide. If one of the rows of the data has an item that does not fit in 100 pixels it stretches the column of the grid so that it fits around the data. But I don't want it this way. What I want is that when column data in one of the rows goes beyond 100 pixels, it should warp to the second line in the datagrid's row. I have set ItemStyle-Wrap="False" and ItemStyle-Width="100" for this column and also I have set the RowHeight=80px so that 2 or 3 lines of data can appear in one row of the datagrid but it is not working. I even tried grdAllprod.Columns[1].ItemStyle.Width = 100; in my codebehind file. Pl. help me. Any help on this greatly appreciated as this is very-2 urgent. Thanks n Regards, tripps Quote
WebJumper Posted October 17, 2003 Posted October 17, 2003 ItemStyle-Wrap="False" Maybe you have to set it True???? *LOL* Think about what WRAP means.... Quote
atoz Posted October 19, 2003 Posted October 19, 2003 is there any part of your code that collides with this? Cos wrap="true" is correct.. hmm.. u check if there is other parts that crashes with this cell think some codes overrided your wrap=true Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.