Click here to Skip to main content
15,912,578 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionsmall arrow at my form Pin
asha_s6-May-08 6:52
asha_s6-May-08 6:52 
AnswerRe: small arrow at my form Pin
Dave Kreskowiak6-May-08 7:55
mveDave Kreskowiak6-May-08 7:55 
GeneralRe: small arrow at my form Pin
asha_s6-May-08 8:34
asha_s6-May-08 8:34 
GeneralRe: small arrow at my form Pin
Dave Kreskowiak6-May-08 8:44
mveDave Kreskowiak6-May-08 8:44 
QuestionRe: small arrow at my form Pin
asha_s6-May-08 8:54
asha_s6-May-08 8:54 
AnswerRe: small arrow at my form Pin
Dave Kreskowiak6-May-08 9:03
mveDave Kreskowiak6-May-08 9:03 
GeneralRe: small arrow at my form Pin
asha_s7-May-08 3:03
asha_s7-May-08 3:03 
QuestionDataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
SteveNY6-May-08 6:08
SteveNY6-May-08 6:08 
Hi,

I'm using vb 2005.

I'm making a test project to try some things out but having problem that I have a DataGridViewComboBoxColumn binded to a child table and then adding that column to a DataGridView. The column doesn't show the data from the child table until I tripple click the column. The data is the correct data though.

Details:

I have three tables that are related.

Parent table called Customers table with cust_id as PK

Orders table with order_id and foreign key being cust_id

Prices table with FK of order_id.


This is the code I used to bind the DataGridViewComboBoxColumn


Dim priceComboBoxColumn As New DataGridViewComboBoxColumn<br />
<br />
            With priceComboBoxColumn<br />
<br />
                .HeaderText = "price"<br />
                .DataSource = priceBindingsource<br />
                .DisplayMember = "price"<br />
                .DataPropertyName = "price"<br />
                .ValueMember = "price"<br />
                .DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing<br />
                .Visible = True<br />
                ' .DisplayStyle = DataGridViewComboBoxDisplayStyle.ComboBox<br />
<br />
<br />
            End With<br />
<br />
dgOrders.Columns.Add(priceComboBoxColumn)


I have two pictures here to show what I mean

http://www.matcmp.ncc.edu/~steve/vb/


Any help would be greatly appreciated.

Thanks
AnswerRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
Dave Kreskowiak6-May-08 8:13
mveDave Kreskowiak6-May-08 8:13 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
SteveNY6-May-08 8:22
SteveNY6-May-08 8:22 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
Dave Kreskowiak6-May-08 8:46
mveDave Kreskowiak6-May-08 8:46 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
SteveNY6-May-08 11:13
SteveNY6-May-08 11:13 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
Dave Kreskowiak6-May-08 19:23
mveDave Kreskowiak6-May-08 19:23 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
SteveNY7-May-08 11:12
SteveNY7-May-08 11:12 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
Dave Kreskowiak7-May-08 14:05
mveDave Kreskowiak7-May-08 14:05 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
SteveNY8-May-08 11:23
SteveNY8-May-08 11:23 
GeneralRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
Dave Kreskowiak8-May-08 13:29
mveDave Kreskowiak8-May-08 13:29 
AnswerRe: DataGridViewComboBoxColumn doesn't show data until clicked in a datagridview control Pin
javedk096-May-08 19:56
javedk096-May-08 19:56 
QuestionOPEN A NON ACTIVE FORM Pin
robby19776-May-08 4:03
robby19776-May-08 4:03 
AnswerRe: OPEN A NON ACTIVE FORM Pin
Dave Kreskowiak6-May-08 4:54
mveDave Kreskowiak6-May-08 4:54 
GeneralRe: OPEN A NON ACTIVE FORM Pin
robby19777-May-08 11:39
robby19777-May-08 11:39 
Question[Message Deleted] Pin
nishkarsh_k6-May-08 3:30
nishkarsh_k6-May-08 3:30 
AnswerRe: Error while saving image to file "A generic error occurred in GDI+." Pin
Dave Kreskowiak6-May-08 3:48
mveDave Kreskowiak6-May-08 3:48 
GeneralRe: Error while saving image to file "A generic error occurred in GDI+." Pin
nishkarsh_k6-May-08 4:02
nishkarsh_k6-May-08 4:02 
GeneralRe: Error while saving image to file "A generic error occurred in GDI+." Pin
Dave Kreskowiak6-May-08 4:33
mveDave Kreskowiak6-May-08 4:33 

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.