Click here to Skip to main content
15,895,283 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPass selected row in Datagrid view to another datagrid on another form Pin
ShabRaza7-Sep-09 12:09
ShabRaza7-Sep-09 12:09 
AnswerRe: Pass selected row in Datagrid view to another datagrid on another form Pin
Christian Graus7-Sep-09 12:39
protectorChristian Graus7-Sep-09 12:39 
GeneralRe: Pass selected row in Datagrid view to another datagrid on another form Pin
ShabRaza8-Sep-09 1:54
ShabRaza8-Sep-09 1:54 
General[Message Deleted] Pin
Hurricane30008-Sep-09 7:21
Hurricane30008-Sep-09 7:21 
GeneralRe: Pass selected row in Datagrid view to another datagrid on another form Pin
ShabRaza9-Sep-09 5:16
ShabRaza9-Sep-09 5:16 
GeneralRe: Pass selected row in Datagrid view to another datagrid on another form Pin
Hurricane30009-Sep-09 9:25
Hurricane30009-Sep-09 9:25 
AnswerRe: Pass selected row in Datagrid view to another datagrid on another form Pin
dcdhingra8-Sep-09 5:14
dcdhingra8-Sep-09 5:14 
AnswerRe: Pass selected row in Datagrid view to another datagrid on another form Pin
εїзεїзεїз8-Sep-09 6:13
εїзεїзεїз8-Sep-09 6:13 
Actually their are several ways to do this depends upon the criteria and structure of the application

lets suppose you need to show

=-=-Item Code=-=-=-=-Item Name=-=-==-=-category Name=-=-=-=-=-=-Units=-=-=-=-=-=-Qty
on the Destination form then on your Search/Lookup Form you can have some other columns like

=-=-Item ID======Category ID-=-=-=-=--

but hide them along with your other columns and dont show them to the end user when user will select any row then it will bring with it that item id, category id etc.. take only Keys as hidden columns

you can take this id and then can make a query to get your desired results and can populate your fields,
will not recommend you to open Costly connections again and again means to go to the database and bring your information time to time

Dont bring information other then Keys in hidden columns because if their will be any change on that data lets say you had populated in your grid and some other user changed the item Name or some other information in this case you will have still old value in the grid so bring only the IDs as hidden column and then fetch your desired data from db



Best Of Regards,
SOFTDEV
Sad like books with torn pages, sad like unfinished stories ...

QuestionAccess Is Denied while checking process terminated or not. Pin
Gagan.207-Sep-09 7:15
Gagan.207-Sep-09 7:15 
AnswerRe: Access Is Denied while checking process terminated or not. Pin
Luc Pattyn7-Sep-09 8:09
sitebuilderLuc Pattyn7-Sep-09 8:09 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Gagan.207-Sep-09 16:48
Gagan.207-Sep-09 16:48 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Luc Pattyn8-Sep-09 0:38
sitebuilderLuc Pattyn8-Sep-09 0:38 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Gagan.208-Sep-09 0:46
Gagan.208-Sep-09 0:46 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Luc Pattyn8-Sep-09 1:05
sitebuilderLuc Pattyn8-Sep-09 1:05 
QuestionDisplay one value in combobox, but use another. Pin
Nielvh7-Sep-09 2:00
Nielvh7-Sep-09 2:00 
AnswerRe: Display one value in combobox, but use another. Pin
Luc Pattyn7-Sep-09 2:44
sitebuilderLuc Pattyn7-Sep-09 2:44 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh7-Sep-09 23:21
Nielvh7-Sep-09 23:21 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt7-Sep-09 23:40
Johan Hakkesteegt7-Sep-09 23:40 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:01
Nielvh8-Sep-09 0:01 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt8-Sep-09 0:11
Johan Hakkesteegt8-Sep-09 0:11 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:21
Nielvh8-Sep-09 0:21 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt8-Sep-09 0:26
Johan Hakkesteegt8-Sep-09 0:26 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:37
Nielvh8-Sep-09 0:37 
QuestionThe Remote Server Returned an error :(411) Length Required Pin
dcdhingra6-Sep-09 20:49
dcdhingra6-Sep-09 20:49 
AnswerRe: The Remote Server Returned an error :(411) Length Required Pin
Hurricane30007-Sep-09 11:07
Hurricane30007-Sep-09 11:07 

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.