Click here to Skip to main content
14,662,085 members
Home » Discussions » C#
   

C#

 
AnswerRe: how to block keyboard input? Pin
lw@zi 1-Jul-08 1:00
professional lw@zi 1-Jul-08 1:00 
AnswerRe: how to block keyboard input? Pin
Thomas Stockwell2-Jul-08 2:32
professionalThomas Stockwell2-Jul-08 2:32 
QuestionHow to pass multiple values of checked rows in grid to databse? Pin
Ganesh31-Jul-08 0:00
MemberGanesh31-Jul-08 0:00 
AnswerRe: How to pass multiple values of checked rows in grid to databse? Pin
Vimalsoft(Pty) Ltd1-Jul-08 0:09
professionalVimalsoft(Pty) Ltd1-Jul-08 0:09 
GeneralRe: How to pass multiple values of checked rows in grid to databse? Pin
Ganesh31-Jul-08 0:31
MemberGanesh31-Jul-08 0:31 
GeneralRe: How to pass multiple values of checked rows in grid to databse? Pin
Vimalsoft(Pty) Ltd1-Jul-08 0:47
professionalVimalsoft(Pty) Ltd1-Jul-08 0:47 
GeneralRe: How to pass multiple values of checked rows in grid to databse? Pin
Ganesh32-Jul-08 1:19
MemberGanesh32-Jul-08 1:19 
AnswerRe: How to pass multiple values of checked rows in grid to databse? Pin
lnkgoeng2-Jul-08 0:27
Memberlnkgoeng2-Jul-08 0:27 
I sugest you have a column( called user id) hidden on the data gridview. When you check 4 boxes out of ten then you can use something like.

dim id as integer()

for i as integer = 0 to dgv.rowcount-1
if dgv.rows(i).cols(0).value = true' this is your checked column
id = cint(dgv.rows(i).cols("userid).value)
end if
next

I wrote this code in the reply window you may have to change some few things. id should be public to your project. Once you have populated user id's in the array then

In your new form load you can use something like

for i as integer = 0 to id.getupperbound(0)
sql = "SELECT * FROM table where field = " & id(i)
'decide what you can do here
next
GeneralRe: How to pass multiple values of checked rows in grid to databse? Pin
Ganesh32-Jul-08 1:23
MemberGanesh32-Jul-08 1:23 
Question[Message Deleted] Pin
imnotso#30-Jun-08 23:33
Memberimnotso#30-Jun-08 23:33 
AnswerRe: Transferring Data from Page to Page. Pin
Pete O'Hanlon30-Jun-08 23:47
subeditorPete O'Hanlon30-Jun-08 23:47 
GeneralRe: Transferring Data from Page to Page. Pin
imnotso#30-Jun-08 23:52
Memberimnotso#30-Jun-08 23:52 
QuestionUnit Test Pin
ellllllllie30-Jun-08 23:11
Memberellllllllie30-Jun-08 23:11 
QuestionHow to send SQL Report 2005 in Email By C# Pin
nmathur2330-Jun-08 22:56
Membernmathur2330-Jun-08 22:56 
Questionhow to search in image and compare it with another image ? Pin
hdv21230-Jun-08 22:42
Memberhdv21230-Jun-08 22:42 
AnswerRe: how to search in image and compare it with another image ? Pin
Alan Balkany1-Jul-08 3:24
MemberAlan Balkany1-Jul-08 3:24 
GeneralRe: how to search in image and compare it with another image ? Pin
hdv2121-Jul-08 8:01
Memberhdv2121-Jul-08 8:01 
AnswerRe: how to search in image and compare it with another image ? Pin
Russell Jones1-Jul-08 4:43
MemberRussell Jones1-Jul-08 4:43 
GeneralRe: how to search in image and compare it with another image ? Pin
hdv2121-Jul-08 8:02
Memberhdv2121-Jul-08 8:02 
QuestionTransfer parameter in main method Pin
jason_mf30-Jun-08 22:11
Memberjason_mf30-Jun-08 22:11 
AnswerRe: Transfer parameter in main method Pin
lw@zi 30-Jun-08 22:28
professional lw@zi 30-Jun-08 22:28 
GeneralRe: Transfer parameter in main method Pin
jason_mf30-Jun-08 22:32
Memberjason_mf30-Jun-08 22:32 
GeneralRe: Transfer parameter in main method Pin
lw@zi 30-Jun-08 22:38
professional lw@zi 30-Jun-08 22:38 
GeneralRe: Transfer parameter in main method Pin
jason_mf30-Jun-08 22:50
Memberjason_mf30-Jun-08 22:50 
GeneralRe: Transfer parameter in main method Pin
lw@zi 30-Jun-08 22:56
professional lw@zi 30-Jun-08 22:56 

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.