Click here to Skip to main content
15,885,914 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow do i calculate the Start_cell_number and end_cell_number from Start_Display_datetime and end_display_datetime calcultion. Pin
Rameez Raja15-Jul-08 18:52
Rameez Raja15-Jul-08 18:52 
QuestionHelp is needed in Displaying Data inside table or Gridview control Pin
Rameez Raja15-Jul-08 18:37
Rameez Raja15-Jul-08 18:37 
AnswerRe: Help is needed in Displaying Data inside table or Gridview control Pin
Mamphekgo Bahula15-Jul-08 19:30
Mamphekgo Bahula15-Jul-08 19:30 
Questionbytes from sql table Pin
vicki52815-Jul-08 18:07
vicki52815-Jul-08 18:07 
AnswerRe: bytes from sql table Pin
Sherin Iranimose15-Jul-08 20:20
Sherin Iranimose15-Jul-08 20:20 
QuestionDisplay word document in web page Pin
Member 406547215-Jul-08 14:12
Member 406547215-Jul-08 14:12 
AnswerRe: Display word document in web page Pin
Gayani Devapriya15-Jul-08 18:07
Gayani Devapriya15-Jul-08 18:07 
QuestionDropDowns/GridView Column Pin
ffowler15-Jul-08 10:10
ffowler15-Jul-08 10:10 
Hello All,

Have a problem where I would like to display a column only if a particular item is selected in a drop down.

To be more specific, I display some values in a gridview and the last column contains a link that removes (actually just archives by setting a bit flag) the row from being displayed in the "Active" view. If the user wants to see "Archived" rows, they would select it from the DropDownList and the page automatically posts and displays the archived items. But the last column with the link still appears. In this view, the "Remove" link is useless and somewhat unprofessional looking.

What I need help with is NOT showing that column when the SelectedIndex of the DropDown is == 1. If it is == 0 then I want the last column to show as normal.

I have tried "GridView.Columns.RemoveAt" which works the first time but doesn't show again.

So, is there anyway to hide a column on a postback and make if visible again.

Thanks in advance for any suggestions.
AnswerRe: DropDowns/GridView Column Pin
ffowler15-Jul-08 10:27
ffowler15-Jul-08 10:27 
Questionweb.config authentication Pin
Ed.Poore15-Jul-08 9:53
Ed.Poore15-Jul-08 9:53 
AnswerRe: web.config authentication Pin
Mike Ellison15-Jul-08 13:57
Mike Ellison15-Jul-08 13:57 
GeneralRe: web.config authentication Pin
Ed.Poore15-Jul-08 22:34
Ed.Poore15-Jul-08 22:34 
Questionreturning server side class object to javascript. Pin
yang__lee15-Jul-08 8:02
yang__lee15-Jul-08 8:02 
Questionmultilevel categories ! Pin
wEb GuRu...15-Jul-08 6:15
wEb GuRu...15-Jul-08 6:15 
QuestionWriting System.Xml.XmlDocument in to DataSet object Pin
indian14315-Jul-08 5:27
indian14315-Jul-08 5:27 
QuestionTrigger event fire Pin
Member 387988115-Jul-08 4:11
Member 387988115-Jul-08 4:11 
AnswerRe: Trigger event fire Pin
leppie15-Jul-08 4:28
leppie15-Jul-08 4:28 
GeneralRe: Trigger event fire Pin
led mike15-Jul-08 4:56
led mike15-Jul-08 4:56 
AnswerRe: Trigger event fire Pin
J4amieC15-Jul-08 5:15
J4amieC15-Jul-08 5:15 
QuestionWrite datatables in different different excel files Pin
Member 387988115-Jul-08 3:40
Member 387988115-Jul-08 3:40 
QuestionThe Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>). Pin
Member 340288615-Jul-08 3:39
Member 340288615-Jul-08 3:39 
QuestionClose the popup window once user filled up the form. Pin
rahul.net1115-Jul-08 3:38
rahul.net1115-Jul-08 3:38 
AnswerRe: Close the popup window once user filled up the form. Pin
eyeseetee15-Jul-08 3:40
eyeseetee15-Jul-08 3:40 
GeneralRe: Close the popup window once user filled up the form. Pin
rahul.net1115-Jul-08 3:49
rahul.net1115-Jul-08 3:49 
GeneralRe: Close the popup window once user filled up the form. Pin
eyeseetee15-Jul-08 3:52
eyeseetee15-Jul-08 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.