how can i insert data from data base with selected Datagridview columns

i have insert combobox to Datagridview and it can load data from DB now i need insert data to another columns in Datagridview when i change combobox items


plzzz helpppppppppppppp

Recommended Answers

All 7 Replies

Hi,
You added combobox to each row of grid view? or its common for the Datagridview?

its common for Datagridview

its common for Datagridview

Then ur job becomes easy,

Open database connection,
Use this query to read data from database,

Select * from tablename where column_name='" & combobox1.text & "';

:)

i need to know how to set selected data for grid view

i need to know how to set selected data for grid view

From where exactly you select the data? Combobox right?

Check whether is this ur requirement,
when u select the data from combo box, Data Gridview has to display the corresponding values from database.

i need to show database values with combobox selected item

i think u did not understand my problem right :(

commented: No! You didn't put your effort to explain your question/problem. Please read forum rule before you post anything. -3

Can u tell me the things done with this clearly?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.