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

Visual Basic

 
AnswerRe: Help me with weird datagrid checkbox problem Pin
Kevin Nicol5-Dec-06 3:53
Kevin Nicol5-Dec-06 3:53 
GeneralRe: Help me with weird datagrid checkbox problem Pin
Kenshino5-Dec-06 4:28
Kenshino5-Dec-06 4:28 
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 
hi,
you are currently taking the checked value as string. Instead of it, take it as a boolean variable.
i m using your code and the changes are reflected in BOLD text.

Dim cb As BOOLEAN
Dim courseID As boolean

cb = CTYPE(deleteCourseGrid.Items(i).FindControl("deleteCheck"), CHECKBOX).CHECKED

For i = 0 To deleteCourseGrid.Items.Count - 1

IF cb = TRUE THEN
courseID = deleteCourseGrid.Items(i).Cells(0).Text
command.Parameters.Add("@courseID", courseID)
connection.Open()
command.ExecuteNonQuery()
connection.Close()
End If




use this and your code will work fine.

ALSO check that you are reloading the datagrid on page_load

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

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 
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 

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.