Click here to Skip to main content
15,917,456 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to handle two checkBox in gridview ? Pin
Grapes-R-Fun21-Aug-06 15:36
Grapes-R-Fun21-Aug-06 15:36 
GeneralRe: How to handle two checkBox in gridview ? Pin
Hussein Madani Ghomi22-Aug-06 3:11
Hussein Madani Ghomi22-Aug-06 3:11 
AnswerRe: How to handle two checkBox in gridview ? Pin
_AK_21-Aug-06 20:10
_AK_21-Aug-06 20:10 
QuestionThat annoying 'page has expired' Pin
Grapes-R-Fun21-Aug-06 9:43
Grapes-R-Fun21-Aug-06 9:43 
QuestionPreferred method of displaying customer information? Pin
Solly7421-Aug-06 8:59
Solly7421-Aug-06 8:59 
AnswerRe: Preferred method of displaying customer information? Pin
Colin Angus Mackay21-Aug-06 9:04
Colin Angus Mackay21-Aug-06 9:04 
GeneralRe: Preferred method of displaying customer information? Pin
Solly7421-Aug-06 9:24
Solly7421-Aug-06 9:24 
QuestionGridView Column Removal Using CheckboxList Pin
GaryT8021-Aug-06 8:54
GaryT8021-Aug-06 8:54 
I am trying to create a checklistbox with a button that upon selecting the field they would like to remove from the gridview they click the button and it removes the selected columns. It seems quite easy but I am haveing problems getting this to work. My btn_click event is as follows:

Protected Sub btnUpdate_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim li As ListItem
For Each li In CheckBoxList2.Items
If li.Text = "BegAttch" Then
GridView1.Columns(0).Visible = False
Else
GridView1.Columns(0).Visible = True
End If
If li.Text = "Folder" Then
GridView1.Columns(1).Visible = False
Else
GridView1.Columns(1).Visible = True
End If
If li.Text = "DocDate" Then
GridView1.Columns(2).Visible = False
Else
GridView1.Columns(2).Visible = True
End If
End Sub

I have also tried If li.Value = 0 because I set the values to corresponde with the column order.

Any ideas?

PS. I know i should be using a case statement I just want to get it working first.
AnswerRe: GridView Column Removal Using CheckboxList Pin
GaryT8021-Aug-06 12:04
GaryT8021-Aug-06 12:04 
QuestionTotally confused about updating the database - asp.net & vb.net Pin
digsy_21-Aug-06 8:44
digsy_21-Aug-06 8:44 
AnswerRe: Totally confused about updating the database - asp.net & vb.net Pin
Ramasubramaniam22-Aug-06 5:41
Ramasubramaniam22-Aug-06 5:41 
GeneralRe: Totally confused about updating the database - asp.net & vb.net Pin
digsy_22-Aug-06 7:49
digsy_22-Aug-06 7:49 
Questionrange in excel workbook Pin
playout21-Aug-06 8:14
playout21-Aug-06 8:14 
AnswerRe: range in excel workbook Pin
Mike Ellison21-Aug-06 8:33
Mike Ellison21-Aug-06 8:33 
GeneralRe: range in excel workbook Pin
playout21-Aug-06 20:46
playout21-Aug-06 20:46 
GeneralRe: range in excel workbook Pin
Mike Ellison22-Aug-06 5:59
Mike Ellison22-Aug-06 5:59 
GeneralRe: range in excel workbook Pin
playout22-Aug-06 9:54
playout22-Aug-06 9:54 
GeneralRe: range in excel workbook Pin
Mike Ellison22-Aug-06 10:42
Mike Ellison22-Aug-06 10:42 
QuestionCentralised Coding of a menu [modified] Pin
JGOnline21-Aug-06 8:01
JGOnline21-Aug-06 8:01 
QuestionASP object data source? Pin
Solly7421-Aug-06 7:44
Solly7421-Aug-06 7:44 
AnswerRe: ASP object data source? Pin
Grapes-R-Fun21-Aug-06 15:47
Grapes-R-Fun21-Aug-06 15:47 
AnswerRe: ASP object data source? Pin
minhpc_bk21-Aug-06 16:13
minhpc_bk21-Aug-06 16:13 
QuestionDisplay curr in EUR in DataGrid for en-GB culture [modified] Pin
Josh Blair21-Aug-06 7:25
Josh Blair21-Aug-06 7:25 
AnswerRe: Display curr in EUR in DataGrid for en-GB culture Pin
minhpc_bk21-Aug-06 16:09
minhpc_bk21-Aug-06 16:09 
GeneralRe: Display curr in EUR in DataGrid for en-GB culture Pin
Josh Blair22-Aug-06 0:32
Josh Blair22-Aug-06 0:32 

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.