DataGrid sort

J

jib

I have a DataGrid in which I want the first row item to stay put even when
sorting. Any ideas how I'd pull this off?

Thanks,

Jib
 
A

Alvin Bruney

what you are after is a 'freeze pane' effect. Dino esposito has two columns
on this - extensive code in both the october and december issue of aspnetpro
magazine. You can take a look and see if you like his approach.
Alteratively, you can, in your sort command save the first row, delete it,
sort it, and add the row back at position zero. I'd suggest you overload the
bind routine to have that effect consistent across your application.
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top