on-internet
← Community

How can I add combobox to datagridview using this code? VB.NET

Stack Overflow ·

This is my code for showing data in the data gridview and some of the data that it will show requires just a yes/no answer so I wanted to add a combobox to limit the choices: Dim con As SqlConnection Dim adap As SqlDataAdapter Dim ds As DataSet Dim cmdbl As SqlCommandBuilder Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Call populateCombo() Try con = New SqlConnection con.ConnectionString = "Data Source=mssql;Initial Catalog=VRC_Royalty;User ID=sa;Password=" con.Open() adap = New SqlDataAdapter("SELECT * FROM tblsongmasterfile ORDER BY Primaryid ASC", con) ds = N

Comments

Sign in or sign up to comment and upvote.

No comments yet.