Lect Combo Box Multi DB Updated
Lect Combo Box Multi DB Updated
C# GUI
ADO.NET
Combo Box DB
Windows Form Control
Course:
Visual Programming
By:
Zohair Ahmed
www.youtube.com/@zohairahmed007 Subscribe
www.begindiscovery.com
ADO.NET COMBO BOX DB VISUAL PROGRAMMING
da.SelectCommand.Parameters.AddWithValue("@ProvinceID", provinceId);
DataTable dt = new DataTable();
da.Fill(dt);
cbCity.DisplayMember = "CityName";
cbCity.ValueMember = "CityID";
cbCity.DataSource = dt;
}
}
Output