Datagrid: Limiting rows displayed

Page 1 of 1

2 Replies - 5962 Views - Last Post: 22 November 2013 - 12:03 PM Rate Topic: -----

#1 synlight  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 90
  • View blog
  • Posts: 582
  • Joined: 14-September 11

Datagrid: Limiting rows displayed

Posted 22 November 2013 - 09:49 AM

I have a datagrid that displays a collection that can potentially contain hundreds of rows. I would like to make the datagrid display X amount of rows, and add scroll bars once it reaches that amount.

I'm thinking 15-20 rows is enough to display at once.

I've been looking this morning but haven't found a property that will do what I'm asking. Thank you!
Is This A Good Question/Topic? 0
  • +

Replies To: Datagrid: Limiting rows displayed

#2 synlight  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 90
  • View blog
  • Posts: 582
  • Joined: 14-September 11

Re: Datagrid: Limiting rows displayed

Posted 22 November 2013 - 10:04 AM

Ah I limited the RowHeight in my grid, and it seems to do the trick. Is there a better way to do it though?
Was This Post Helpful? 1
  • +
  • -

#3 MrShoes  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 331
  • View blog
  • Posts: 512
  • Joined: 13-June 12

Re: Datagrid: Limiting rows displayed

Posted 22 November 2013 - 12:03 PM

That's the way I do it, unless I want to include some kind of pagination, in which case I create my own control allowing the user to flip through "pages" of data.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1