Hey guys,
I am working on a project where I need to create my own employee management system.
I created a datatable and connected it to my datagridview.
I need to allow the user to add information to the system. For this, I added multiple text boxes (ID, Name, Contact_Number...etc)
How do I get to add the information entered by the user to enter the datatable/datagridview (or both).
Thanks in advance :)
Gaurav KumarPosted Jul 15, 2015, 2:00 AM
Nikita SudhirPosted Jul 15, 2015, 1:59 AM
Manas MohapatraPosted Jul 15, 2015, 1:48 AM
Nikita SudhirPosted Jul 15, 2015, 1:36 AM
Gaurav KumarPosted Jul 14, 2015, 10:57 PM
dt.Columns.Add("Employee_ID", typeof(int));
dt.Columns.Add("Employee_Name", typeof(string));
dt.Columns.Add("Home_Address", typeof(string));
dt.Columns.Add("Date_Of_Joining", typeof(string));
dt.Columns.Add("Contact_Number", typeof(string));
dt.Columns.Add("Location_InCharge", typeof(string));
dt.Columns.Add("Total_Sales", typeof(int));
dt.Rows.Add(100, "Ashley Loughlin", "8 Fergusson Street, NSW 2470", "24/07/2010", "+610267021973", "Australia", 1000000);
dt.Rows.Add(200, "Drew D. McCaskill", "2070 Hartland Avenue, WI 53202", "04/12/2007", "+192028941061", "USA", 1073900);
dt.Rows.Add(300, "Jan Fuerst", "Boxhagener Str. 14, 20535 Hamburg Borgfelde", "05/01/2010", "+149040813500", "Germany", 999999);
dt.Rows.Add(400, "Cristoforo Pisano", "Via Moiariello, 12045-Tagliata CN", "24/07/2014", "+1393293332496", "Italy", 500000);
dt.Rows.Add(500, "Natalia Samuelsson", "Karlsängen 45 FOTÖ", "09/11/2010", "+460398658218", "Sweden", 1009900);
dataGridView1.DataSource = dt;
dataGridView1.DataBind();
Nikita SudhirPosted Jul 14, 2015, 4:37 PM
Gaurav KumarPosted Jul 14, 2015, 2:50 PM
Nikita SudhirPosted Jul 14, 2015, 12:32 PM
Rajeesh MenothPosted Jul 14, 2015, 12:30 PM
Nikita SudhirPosted Jul 14, 2015, 12:27 PM
Nikita SudhirPosted Jul 14, 2015, 12:27 PM
Rajeesh MenothPosted Jul 14, 2015, 12:18 PM
Manas MohapatraPosted Jul 14, 2015, 12:17 PM
Nikita SudhirPosted Jul 14, 2015, 12:08 PM
Manas MohapatraPosted Jul 14, 2015, 12:05 PM
Nikita SudhirPosted Jul 14, 2015, 11:37 AM
Nikita SudhirPosted Jul 14, 2015, 11:37 AM
Manas MohapatraPosted Jul 14, 2015, 11:29 AM
Nikita SudhirPosted Jul 14, 2015, 11:21 AM
Manas MohapatraPosted Jul 14, 2015, 11:15 AM
Nikita SudhirPosted Jul 14, 2015, 11:05 AM
Gaurav KumarPosted Jul 14, 2015, 11:02 AM
http://www.c-sharpcorner.com/UploadFile/9f0ae2/gridview-edit-delete-and-update-in-Asp-Net/