473,396 Members | 2,011 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,396 software developers and data experts.

combobox in datagrid.

hi friends, i am working in VB.net...

i have a requirement of using a dropdown list/combobox in data grid for allowing user to select from the list.
how can i do that.I want to have a particular column with this option available that should be filled with data from the SQL database.

For e.g :

if following are the fields in grid view :
emp id , emp name , salary

now in this what i want is that user could select the emp id for which he wants to enter the data.
then on the basis of the selection emp name field should be filled automatically and then user enter the salary which get saved after pressing a button on form

how could i achieve that in VB.net and using SQL databse
Apr 5 '10 #1

✓ answered by Frinavale

There are column types that you can use in order to display your data the way that you want to in a DataGridView.

Check out this article on Column Types in the Windows Forms DataGridView Control.

If that article doesn't help you please use the MSDN Library to do further research on the topic.

Once you've attempted the problem and have a more specific question post back here :)

-Frinny

1 1110
Frinavale
9,735 Expert Mod 8TB
There are column types that you can use in order to display your data the way that you want to in a DataGridView.

Check out this article on Column Types in the Windows Forms DataGridView Control.

If that article doesn't help you please use the MSDN Library to do further research on the topic.

Once you've attempted the problem and have a more specific question post back here :)

-Frinny
Apr 13 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gamze | last post by:
Hi, How can i get values from datagrid to combobox and should select the same name as in datagrid row on the combobox control In my vb.net windows application ,i have combobox which is...
2
by: CVillalba | last post by:
i need to add a combox column to a .net windows forms datagrid. Does anyone have a simple example of how to do this? Thanks.
2
by: Bill C. | last post by:
Hi, I'm trying to implement a ComboBox drop-down column for a DataGrid. When a cell is selected in the ComboBox column I overlay a ComboBox over the cell and call: this.comboBox.Show();...
4
by: RFickling | last post by:
Hi, I have implemented a DataGrid with ComboBoxes in it using the DataGridComboBoxColumn class from the MSDN article. My problem is that I would like to make the combobox disappear when an item...
3
by: PeterZ | last post by:
G'day, After doing much searching and pinching bits of ideas from here there and everywhere I came up with a fairly 'clean' solution of including a comboBox into a dataGrid column. You can...
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
3
by: TT (Tom Tempelaere) | last post by:
Hay there, I'm writing my own DataGridComboBoxColumn because .NET 1.1 does not have one (I hope .NET 2.0 supplies one). I based it on this article:...
3
by: Doug | last post by:
Hi I have the following code (not mine) that populates a datagrid with some file names. But I want to replace the datagrid with a combo box. private void OnCurrentDataCellChanged(object sender,...
7
by: Mrozu | last post by:
Hi I have datagrid, with 2 columns Id and Name. I want, then i insert to datagrid, to column name "d", datagrid move to record where value of name is "d_____" , when i insert to name "da", move...
0
by: zhuang | last post by:
Hi, Adding combobox to datagrid has been posted many times. I have a datagrid which has multiple combobox columns and normal textbox columns. But how could I change other combo box values at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.