Click here to Skip to main content
15,916,091 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb.net Pin
srinivassam4-Jun-07 2:01
srinivassam4-Jun-07 2:01 
AnswerRe: vb.net Pin
kubben4-Jun-07 2:26
kubben4-Jun-07 2:26 
AnswerRe: vb.net Pin
Christian Graus4-Jun-07 2:52
protectorChristian Graus4-Jun-07 2:52 
Questiona question about row-index Pin
vbbeg4-Jun-07 1:47
vbbeg4-Jun-07 1:47 
AnswerRe: a question about row-index Pin
Dave Kreskowiak4-Jun-07 4:06
mveDave Kreskowiak4-Jun-07 4:06 
GeneralRe: a question about row-index Pin
vbbeg4-Jun-07 4:56
vbbeg4-Jun-07 4:56 
GeneralRe: a question about row-index Pin
Dave Kreskowiak4-Jun-07 6:32
mveDave Kreskowiak4-Jun-07 6:32 
GeneralRe: a question about row-index Pin
vbbeg4-Jun-07 7:11
vbbeg4-Jun-07 7:11 
Thank for your patience dave.

I just need clarification on something.. realisticly what im trying to do is clone a record and rewrite columns so that essentially its not a duplicated record after all when its written to a table but I havent been able to work that out. (any advice you can give me will save you reading below and helping me along where im at right now)..

so imagine in my DGV i have surname , firstname , address . if i select a particular record showing these columns and rows respectively i want to additionally go to the table and also get "phone number" etc.

i guess what im asking is based on the DGV selection how can i go to the table and pickout the rest of the fields i need for that same row of data selected in the DGV.

e.g. SELECTED ROW IN DGV(IN BOLD)

[SURNAME]-[FIRSTNAME]-[ADDRESS]
CHAN,...........ALEX,.......mamre drive.............[AT INDEX 0}
Bloggs,.......JOE,.......2 Hollywood st , hollywood..INDEX 1

if i sort this by FIRSTNAME IN DESCENDING. it would be

[SURNAME]-[FIRSTNAME]-[ADDRESS]
Bloggs,.........JOE,.....2 Hollywood st , hollywood... INDEX 0
CHAN,.............ALEX,.....mamre drive .....................INDEX 1


im trying to use the below line
where "i" is the row number coming from DGV select row index.
dim value as string
value = ds.tables("customers").rows(i).item("phone")


* if i use the index from the DGV after i sort it it doesnt return the correct record to match the phone number...

just a reminder.. If i dont sort the DGV at all. I can use the DGV.index and use it here :
dim value as string
value = ds.tables("customers").rows(i).item("phone")
it WORKS CORRECTLY. its just after i sort the DGV that I cant get

ds.tables("customers").rows(i).item("phone") to return the correct row from the table..

sorry about this dave .. thanks for your patience.












Robbo
GeneralRe: a question about row-index Pin
Dave Kreskowiak4-Jun-07 8:09
mveDave Kreskowiak4-Jun-07 8:09 
GeneralRe: a question about row-index Pin
Dave Kreskowiak4-Jun-07 13:33
mveDave Kreskowiak4-Jun-07 13:33 
GeneralRe: a question about row-index Pin
vbbeg4-Jun-07 17:24
vbbeg4-Jun-07 17:24 
QuestionProblem in adding dll files Pin
Nanda16054-Jun-07 0:59
Nanda16054-Jun-07 0:59 
AnswerRe: Problem in adding dll files Pin
WhiteGirl234-Jun-07 2:07
WhiteGirl234-Jun-07 2:07 
GeneralRe: Problem in adding dll files Pin
Nanda16054-Jun-07 2:17
Nanda16054-Jun-07 2:17 
GeneralRe: Problem in adding dll files Pin
Dave Kreskowiak4-Jun-07 4:05
mveDave Kreskowiak4-Jun-07 4:05 
Questionhelp! Pin
daredevil_beware164-Jun-07 0:55
daredevil_beware164-Jun-07 0:55 
AnswerRe: help! Pin
Christian Graus4-Jun-07 1:47
protectorChristian Graus4-Jun-07 1:47 
GeneralRe: help! Pin
daredevil_beware164-Jun-07 1:51
daredevil_beware164-Jun-07 1:51 
GeneralRe: help! Pin
Christian Graus4-Jun-07 2:54
protectorChristian Graus4-Jun-07 2:54 
GeneralRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:05
Sathesh Sakthivel4-Jun-07 3:05 
QuestionRe: help! Pin
Sonia Gupta4-Jun-07 2:00
Sonia Gupta4-Jun-07 2:00 
AnswerRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:21
Sathesh Sakthivel4-Jun-07 3:21 
AnswerRe: help! Pin
daredevil_beware164-Jun-07 2:58
daredevil_beware164-Jun-07 2:58 
GeneralRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:07
Sathesh Sakthivel4-Jun-07 3:07 
GeneralRe: help! Pin
daredevil_beware164-Jun-07 3:11
daredevil_beware164-Jun-07 3: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.