Click here to Skip to main content
13,054,779 members (67,256 online)
Rate this:
Please Sign up or sign in to vote.
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 1:44am
PosiRob 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 8 Jan 2013
Copyright © CodeProject, 1999-2017
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