Skip to main content

Microsoft Silverlight

Answered Question Wrapping of text in textblock of DatagridTemplateColumn using Silverlight2RSS Feed

(0)

tanusree
tanusree

Member

Member

29 points

77 Posts

Wrapping of text in textblock of DatagridTemplateColumn using Silverlight2

I want to wrap text in Textblock created using  DatagridTemplateColumn of Datagrid.

I need srollbar in my datagrid so I have used VerticalSrollbarVisibility = True,TextWarpping = True & it's working fine. In some of my row text fit within the the width of the row & some r not. In which row  text r not fitting within the width of the row, text wraps in this row & the height of the row is increased.. But when I come at the end of the srollbar every row is taking the height of the highest row height.

Can help me in solving this problem.

Thanks in advance,

Tanusree

MarkMonster
MarkMonster

Contributor

Contributor

5220 points

1,046 Posts

Re: Wrapping of text in textblock of DatagridTemplateColumn using Silverlight2

Do I understand your problem correctly that you don't want each row to have an equal height?

Mark Monster - MCPD Enterprise
http://mark.mymonster.nl
Silverlight and Expression Insiders UG

Dont forget to click "Mark as Answer" on the post that helped you.

tanusree
tanusree

Member

Member

29 points

77 Posts

Re: Re: Wrapping of text in textblock of DatagridTemplateColumn using Silverlight2

Yes, I don't want each row to be an equal height.

In my case When I click at the end of the srollbar & come on  top every row is taking same height.

How to solve this.

Thanks in advance,

Tanusree

 

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft
Answered Question

Re: Re: Wrapping of text in textblock of DatagridTemplateColumn using Silverlight2

Hi Tanusree,

Seems there is no convenient way for your situation.  We need to detect its LoadingRow event and change its row height on the event.

Best regards,

Jonathan

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities