Click here to Skip to main content
11,492,385 members (64,653 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 Win2008
Good morning.

I am having a challenge dynamically setting the # of DataGrid row on a page based on how many changes there are for a specific customer.

There could be 1 to 10 changes per customer / per row, and I would like to some how count the changes, and determine how many rows are to display on each page.

Currently the DataGrid's datasource is set, and is bound. The rowcount is set to 100 to allow for all rows to be displayed.

Basically I am trying to figure out how to loop through, count the changes, and set each page a variable # of rows

Thank you, WHEELS.
Posted 8-Jan-13 2:44am
Comments
PosiRob at 14-Jan-13 12:56pm
   
I don't understand your question, and I think all the other readers don't either, so perhaps you can clarify.
Are you using a datagrid for it's master/child capabilities?
Do you want to limit the number of child records limited?
Because for all I know the number of rows displayed depends on the amount of rows in the datasource.
Perhaps the solution is in the dataset, eg the sql used to retrieve the data.

Please clarify!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 455
1 Maciej Los 306
2 Sascha Lefèvre 265
3 Andy Lanng 235
4 KarstenK 220
0 Sergey Alexandrovich Kryukov 9,943
1 OriginalGriff 8,610
2 Sascha Lefèvre 3,609
3 Maciej Los 3,372
4 Richard Deeming 2,440


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100