Hi,
I am developing a project for online exam. I am displaying questions from DB and binding to gridview randomly. So serial no for questions will not in ascending order. So i am using <%#Container.DataItemIndex+1 %> expression to display in order. Now in middle user wants to see what are all unanswered questions in that paper i am giving one "Review " button. So how can i show that unanswered questions from gridview. Some one pls help me.
Thanks in advance.
Regards,
Rajesh

Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Aug 18, 2011, 1:12 AM EDT
try this:
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Aug 18, 2011, 1:13 AM EDT
Try like this.
Bind the serial num to grid but dont show it. Use Gridview item template with hidden input control or textbox with visibility fase. store the <%#Container.DataItemIndex+1 %> to that hidden control.
Now you can access the hidden control value and corresponding serial number. Do the remaining stuffs.