Yep. I'm pretty sure. There is no question in that post... Yep. Not one sentence that ends in a question mark.
You have stated what you aren't getting:
Quote:
I am not showing (displaying) the aid and sid on the gridview2.
Quote:
- a.administrator_id aid,
-
s.supervisor_id sid
Those of us on the outside have no idea what these variables or values are.
Is a.administor_id an int? ... a string? ... A jpg ?
And you've stated what your desires are:
Quote:
I would like to diplay img_admin and img_super next to a record if it has either sid or aid. aid will take priority over sid icon.
The very fact that you say "
If it has either a sid or aid" tells me that some records don't have this. That could be why they aren't showing in your grid.
To me reading it, the desires about images probably aren't related to the variables... unless the images
are the ID variables? But I have a hard time believing that variable
e.empl_id is an image, though it could be their ID badge photo I suppose. Without providing what the classes 'a', 's' and 'e' actually consist of a.anything is just guesswork.
What is it you are asking of the people here? What would cause the aid and sid variable values to not display on your grid? How do you conditionally place a graphic on a grid? Would someone telepathically intuit what my variables are and write the code to fix it for me? Could someone point me at a tutorial about gridviews? Has anyone ever successfully put images on a gridview and if so how? Is there a limit to the number of values I can put on a grid view? Does an image on a gridview have to be in a specific field, like the first column only? Do I have to turn on a specific property to show an image?
As you can see, there a LOT of questions you could be asking. Its not right to make the people here have to guess what it is you are asking.