Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...