Datagrid custom paging - alphanumber.

M

Mufasa

I have seen code that will do custom paging for a datalist by alphanumeric.
The problem I can see is that the one I saw it did it by the first letter.
That would be fine if my data was evenly distributed among the letters but
it's not. S has 176 items and K has 2. I'd like to be able to have the
system do something where it would be like A-Cre.. Cre-Hie...

Anybody have any suggestions other than read the dataset and then go through
it counting records and using those values ? In other words say - Set 1,
record 1 starts with A end with ( 25 records later ) Cre. Set 2 record 1
starts with Cre and end with Hig.

I have a feeling the answer is there is no easy way to do it other than the
hard coded way.

TIA - Jeff.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,058
Latest member
QQXCharlot

Latest Threads

Top