Click here to Skip to main content
16,015,756 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kevin Nicol5-Dec-06 5:18
Kevin Nicol5-Dec-06 5:18 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kenshino5-Dec-06 5:29
Kenshino5-Dec-06 5:29 
AnswerRe: Help me with weird datagrid checkbox problem Pin
Kevin Nicol5-Dec-06 6:17
Kevin Nicol5-Dec-06 6:17 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kenshino5-Dec-06 10:08
Kenshino5-Dec-06 10:08 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kapil Thakur6-Dec-06 1:06
Kapil Thakur6-Dec-06 1:06 
AnswerRe: Help me with weird datagrid checkbox problem Pin
Kapil Thakur5-Dec-06 20:53
Kapil Thakur5-Dec-06 20:53 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kenshino5-Dec-06 23:57
Kenshino5-Dec-06 23:57 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kapil Thakur6-Dec-06 1:01
Kapil Thakur6-Dec-06 1:01 
hi,
first of all make sure that before checking the checkboxes values....you are not reloading the datagrid with data again.
make sure that after clicking the button you are loading the data again at some point in your code.....as this is the most common mistake in such scenarios.

so, be sure that the grid is not reloaded with data.

anyways.......
i m attaching a thoroughly tested and working code snippet.

Dim count As Integer = 0

For count = 0 To dgUser.Items.Count - 1

Dim IsChecked As String = CType(dgUser.Items(count).FindControl("chkDeleteUser"), CheckBox).Checked.ToString()

If UCase(Trim(IsChecked)) = UCase(Trim("True")) Then

''IGNORE THE FOLLOWING If-EndIf block - starting here
'If UCase(Trim(Session("userid"))) = UCase(Trim(dgUser.Items(count).Cells(1).Text.ToString)) Then
'ErrorLabel.Visible = True
'ErrorLabel.Text = Session("oRM").GetString("UD_You_Are_Not_Allowed_To_Delete_Your_Own_Data") & " - " & dgUser.Items(count).Cells(3).Text.ToString

'pnlGrid.Visible = True
'pnlAddUser.Visible = False
'Exit Sub
'End If
''IGNORE THE FOLLOWING If-EndIf block - ending here

End If

Next




if even this is not working......then my dear frnd , send ur project to me...i'll be glad to help you out by debuging it and fixing your problem
my email id is thakur.kapil@gmail.com



Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com

QuestionHelp me tune up this class, pls Pin
king gamo5-Dec-06 3:05
king gamo5-Dec-06 3:05 
AnswerRe: Help me tune up this class, pls Pin
Guffa5-Dec-06 5:15
Guffa5-Dec-06 5:15 
Questionclick in datagrid's cell Pin
Smithers-Jones5-Dec-06 2:17
Smithers-Jones5-Dec-06 2:17 
AnswerRe: click in datagrid's cell Pin
Kevin Nicol5-Dec-06 3:01
Kevin Nicol5-Dec-06 3:01 
GeneralRe: click in datagrid's cell Pin
Smithers-Jones5-Dec-06 5:30
Smithers-Jones5-Dec-06 5:30 
QuestionNEED HELP NOW Pin
luna_harp5-Dec-06 2:10
luna_harp5-Dec-06 2:10 
AnswerRe: NEED HELP NOW [modified] Pin
ludoder5-Dec-06 2:59
ludoder5-Dec-06 2:59 
QuestionVisual Basic Script..(VBS) at Wincc Pin
TURKERWEB5-Dec-06 1:16
TURKERWEB5-Dec-06 1:16 
AnswerRe: Visual Basic Script..(VBS) at Wincc Pin
Dave Kreskowiak5-Dec-06 14:36
mveDave Kreskowiak5-Dec-06 14:36 
GeneralRe: Visual Basic Script..(VBS) at Wincc Pin
TURKERWEB5-Dec-06 21:04
TURKERWEB5-Dec-06 21:04 
QuestionI need help Pin
Derar Ziad5-Dec-06 0:49
Derar Ziad5-Dec-06 0:49 
AnswerRe: I need help Pin
Tamimi - Code5-Dec-06 1:03
Tamimi - Code5-Dec-06 1:03 
Questionhow to write code for datagrid sort command...... Pin
tirumal12315-Dec-06 0:47
tirumal12315-Dec-06 0:47 
QuestionFlash in .NET from Pin
IPhilVeryGood5-Dec-06 0:42
IPhilVeryGood5-Dec-06 0:42 
AnswerRe: Flash in .NET from Pin
milkyjoe5-Dec-06 6:11
milkyjoe5-Dec-06 6:11 
Questioni need one example keypress event Program in VB.Net Pin
somagunasekaran4-Dec-06 23:18
somagunasekaran4-Dec-06 23:18 
AnswerRe: i need one example keypress event Program in VB.Net Pin
king gamo5-Dec-06 3:27
king gamo5-Dec-06 3:27 

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.