Click here to Skip to main content
15,891,184 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: what a good software Pin
Dave Kreskowiak27-Jul-09 17:20
mveDave Kreskowiak27-Jul-09 17:20 
AnswerRe: what a good software Pin
Mycroft Holmes27-Jul-09 17:42
professionalMycroft Holmes27-Jul-09 17:42 
Question? SET PASSWORD THROUGH CODE in Connectionstring Pin
Kutbi Naharpura27-Jul-09 4:44
Kutbi Naharpura27-Jul-09 4:44 
AnswerRe: ? SET PASSWORD THROUGH CODE in Connectionstring Pin
Sk9328-Jul-09 0:31
Sk9328-Jul-09 0:31 
QuestionDataGridView ComboBox VB.Net Pin
KiwiDanChCh26-Jul-09 22:53
KiwiDanChCh26-Jul-09 22:53 
AnswerRe: DataGridView ComboBox VB.Net Pin
Henry Minute27-Jul-09 10:06
Henry Minute27-Jul-09 10:06 
GeneralRe: DataGridView ComboBox VB.Net Pin
KiwiDanChCh27-Jul-09 20:11
KiwiDanChCh27-Jul-09 20:11 
GeneralRe: DataGridView ComboBox VB.Net Pin
Henry Minute27-Jul-09 23:57
Henry Minute27-Jul-09 23:57 
Please do not be offended by this, but your design seems to me to be a little odd. Of course there may be constraints on you that I am unaware of and if so, please ignore this. Smile | :)

The point about a DataGridView is that it can display many rows of information. Bearing that in mind, why not simply load all of the data into the grid and allow the user to scroll up and down to locate the CODE they are interested in, or provide a search mechanism to allow them to enter a CODE into a TextBox and the grid would scroll the correct line into view.

Doing it in the way that you are proposing would indicate that you are using a single row, which, as I said, is slightly unusual. If you wish to do it one item at a time why not simply use a normal ComboBox on the form, with two TextBoxes for DESCRIPTION and PRICE. Then when the user makes a selection from the CODE ComboBox you can use a paramaterized SELECT statement to fill the TextBoxes with the correct data for editing or whatever.

If on the other hand your grid would have more than one row, all blank until the user selects a CODE, this could become very confusing, with the same data being repeated in different rows, this would be a nightmare for the user and for yourself from a maintenance point of view.

I hope that this helps you, but if not please come back. Smile | :)

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: DataGridView ComboBox VB.Net Pin
KiwiDanChCh28-Jul-09 7:32
KiwiDanChCh28-Jul-09 7:32 
General[Message Deleted] Pin
KiwiDanChCh28-Jul-09 7:35
KiwiDanChCh28-Jul-09 7:35 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh28-Jul-09 7:45
KiwiDanChCh28-Jul-09 7:45 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
Henry Minute28-Jul-09 7:46
Henry Minute28-Jul-09 7:46 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh28-Jul-09 7:50
KiwiDanChCh28-Jul-09 7:50 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
Henry Minute28-Jul-09 8:32
Henry Minute28-Jul-09 8:32 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh28-Jul-09 8:41
KiwiDanChCh28-Jul-09 8:41 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
Henry Minute28-Jul-09 8:47
Henry Minute28-Jul-09 8:47 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh28-Jul-09 8:53
KiwiDanChCh28-Jul-09 8:53 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
Henry Minute28-Jul-09 8:55
Henry Minute28-Jul-09 8:55 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh29-Jul-09 0:05
KiwiDanChCh29-Jul-09 0:05 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh28-Jul-09 11:24
KiwiDanChCh28-Jul-09 11:24 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
Henry Minute29-Jul-09 5:18
Henry Minute29-Jul-09 5:18 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh29-Jul-09 7:14
KiwiDanChCh29-Jul-09 7:14 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
KiwiDanChCh1-Aug-09 18:52
KiwiDanChCh1-Aug-09 18:52 
GeneralRe: DataGridView ComboBox VB.Net (Explaination) Pin
Henry Minute2-Aug-09 4:49
Henry Minute2-Aug-09 4:49 
QuestionImplementing a Read-Only 'File Open' or 'File Save' Common Dialog [modified] Pin
easy games26-Jul-09 2:58
easy games26-Jul-09 2:58 

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.