views:

50

answers:

1

how do I set the height of the datagridview based on number of visible rows. Let's say I have a datagridview with datasource, having 100 rows. I want the viewable area to show only 10 rows. The other rows can be viewed with scrolling.

+1  A: 

Height is a dependencyproperty; you can bind the height of your grid control to the height of one gridrow * 10

Pierreten
Thanks, Yes this will work.
chandra