C#.net

Chicken Shop Inventory Management using C#.net

This tutorial will teach you  to make a small Chicken shop Inventory  system using c#.net. The following  system will use to manage the Chicken shop. Paste the code inside the ok button string status = chkchicken.SelectedItem.ToString(); double qty = double.Parse(txtqty.Text); if (status.Equals(“KG”)) { double tot = qty * 100; txttotal.Text = tot.ToString(); } else {

Chicken Shop Inventory Management using C#.net Read More »

How to Populate DataGridView Combobox C#.net

This tutorial will teach you how to Populate DataGridView based on Combobox selected using C#.net and Microsoft SqlServer. Import the Namespace using System.Data.SqlClient; Establish the database Connection SqlConnection con = new SqlConnection(“server=.;database=ads;user id=sa;password=123;”); SqlCommand cmd; SqlDataAdapter dr; DataSet ds; ComboBox Selected Event if (comboBox1.SelectedItem.ToString() == “Students”) { try { dataGridView1.Refresh(); con.Open(); DataTable dt = new

How to Populate DataGridView Combobox C#.net Read More »