Skip to main content

Microsoft Silverlight

Silverlight 3 RTW DataGridRow height behavior absurdRSS Feed

(0)

praveenrangarajan
praveenr...

Member

Member

42 points

14 Posts

Silverlight 3 RTW DataGridRow height behavior absurd

I'm pulling my hair out. Why will a solution that worked for 2 not work for 3, atleast when rest of the functionality remains unaltered. OK. this is my problem. I expand a DataGrid row and see the row details (which has another DataGrid - ofcorse). I change the sort on my column. Sorts just fine. But another row occupying its position now has the same height as the previous one, without details shown obviously. On SL 2.0 when I ran into this problem, I implemented a hack that set the Visibility Binding to Collapsed when the row was not expanded (have my own custom Notification Property for that). On SL 3.0 (RTW), however, the height is screwed up. And for Pete's Sake, why isn't Mouse Wheel supported on the DataGrid per se? Why have an event when it doesnt do no good? The counter argument is use a ScrollViewer and have the datagrid as its child. But then, I think its stupid. For one, the header moves with the scroll, and ScrollIntoView simply doesnt work. Thankfully, my SL 2.0 scrolling hack still works.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities