Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert data into datagridview

Status
Not open for further replies.

swetham

Programmer
May 5, 2010
257
DE
I am inserting data into datagridview using dataset ie,

dim ds as new dataset
dim da as new mysqldataadapter("select first_name,last_name,address from employee_Details",con)
da.fill(ds)

dgv.datasource=ds.tables(0)

Now i want to display first two columns as "ACCEPT" & "DECLINE" button columns. The columns in employee details table will be changing dynamically so, i dont to add the columns to datagridview manually.

Can anyone please help me on how to add button columns and add data form 3rd column from the dataset.

Thank you

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top