Sorting a datagrid with autogenerated columns

M

MikeG

I currently have a datagrid displaying data from an ADOMD cellset. I have to programmatically control the number and content of header rows to show the hierachy data from the cellset.
I can leave the default column headers (column1 etc) in an extra header row and use these to initiate a sort on the bound dataview but would like to replace this preferably with a clickable icon, otherwise just exchanging the word sort for the innertext of the existing datagridlinkbutton.
I have been unable to get either of these to work as the id is not available for the instance of the icon, and the cast to datagridlinkbutton is invalid so I can't get at the innerText to change.

Help, am I missing something?

Thanks in anticipation,

Mike
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top