Click here to Skip to main content
15,882,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
RobScripta 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900