asp.net - sorting a gridview alphabetically when columns are codes -


I have a gridview that is populated by the web service search function, some columns in the grid are the template fields, because the return value Datasets) are IDs- I then use these IDs to see the values ​​when the Rowdabatt event triggers and populates a label or something like this means that my sorting for this ID / Lookup column The queen has seen IID instead of the value of the text and actually populates it with the grid (though I place an ID in the grid datacase).

What I want to do is be able to sort the code for the top of these special columns instead of the text value seen above what I was going to get around it when the figures Returning from search, and by adding more and more columns to the values ​​of text and looking at all, thus able to sort directly from the manually added column.

Is there another way to do this? As the approach looks like a bit of a board, though I think it removes the visible person in the Rowdabound event ....

My sorting function will paste the data in the session and on each column Works by grabbing the ordering column and binding the gridview. Columns - and for a datawave with sort attribute set on the direction

thanks

nat

I do not understand Why is your dataet stored in the session, how many users do you have? Normally you should reboot your grid on every specific event (sorting, endorsement, editing, ...) on the data source, but not on each postback (stored in gridview view).

Is it possible to link literal values ​​directly to SQL from the database? Then you do not need your search and you can set that column sortexpress.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -