473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Combo box in DataGridView

pf
I have a combo box in the first column of a Datagridview. The
displaymember is the inventory item key. I set the selectedvalue to the
item description.

I have an event for "OnEditControlShowing" of the grid that checks to
see if I'm on the combobox column, and if so, checks the selectedvalue
to make sure it's not null. If both these tests pass, it wires up an
event to the selectedchange on the combobox. This event populates the
2nd column with the selectedvalue of the combobox.

Problem #1, I have to click on the combo twice to get it to drop down.

Problem #2, there is no problem on the first row, but when I click on
the combo and get it to dropdown on rows after the first one, the
description displays "System.Data.DataRowView". How can I trap for this
value so it doesn't display?

Thanks,

PF

Jun 15 '06 #1
0 1109

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: bill.jenner | last post by:
I have two related tables I wish to use in a grid. The second table has to drive the list of items apart of a combo box apart of one of the grids columns. Table 1 schema has columns ( . . . ....
0
by: Bob | last post by:
I have a combox column in a datagridview (vs2005 and VB.NET). Once I select an item from the dropdownlist in the combox and do a save, I can no longer remove the item. I can change my selection but...
7
by: Ausclad | last post by:
Ok, ill try again..... It seems fairly simple. I have two combo boxes in a datagrid. The datagrid is bound to a a table in a dataset. The two combo boxes are bound to a single data table...
1
by: =?Utf-8?B?UmVkYmFjaw==?= | last post by:
Hi All, slight problem I hope someone could shed some light on. I am using VS 2005. In a datagridview I have 2 comboboxes that are both bound to a table field called "empCode". This is an...
2
by: gwoodhouse | last post by:
Hello all, I have a combobox cell in a datagridview component. Im using a seperate window to remove the items from the combo box. Whenever i drop down the combo box however the items still seem...
1
by: BD | last post by:
I am running VS 2005 writing in C# accessing remote SQL Server 2005 database. I want to develope a custom listing of the relationship between Customers and Locations (one to many) in a combo box. ...
1
by: joel | last post by:
good day guys. im a new member of this of this group and i am currently studying vb.net right now. I have this problem and i hope somebody would like to help. I happen to have 2 tables 1st...
4
by: JB | last post by:
Hi All, I have a DataGridView in which some columns are combo boxes (i.e. DataGridViewComboBoxColumn). I populate these Combo Boxes directly by using code like this: Dim NewCol As New...
0
by: JB | last post by:
Hi All, I have a DataGridView with a column showing a combo box containing non binded values (i.e. I set the values in the Combo myself using ComboBoxColumn.Items.Add). I also want this Combo...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.