I think this will be an easy one to solve. I want to set the sort order of a grid based on who is logged in. Basically if it's person A, then sort by X, Y. If it's anyone else, sort by Z.
I have a radGrid with 1 nested detail table.
I had tried to put this on the Page_load using an exit sub if it's a postback, but as you may have guessed, this has many side effects:
- Go to another page produces a blank page (no grid at all because it's empty.)
- Trying to edit a row in the top table makes the grid disappear.
If I remove the postback exit sub, editing a record just causes an error.
So I think I'm just not setting the data source in the right place or I'm just doing it wrong.
My Page Load code
I think you'll know how to solve this without my HTML, but I'll give it to you anyway.