Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Silverlight 3 RTW DataGridRow height behavior absurd
0 replies. Latest Post by praveenrangarajan on July 10, 2009.
(0)
praveenr...
Member
42 points
14 Posts
07-10-2009 3:52 PM |
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.