am using dateTimePicker in dataGridView and SQL database
- private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
- {
- try
- {
- string ColName = dataGridView1.Columns[e.ColumnIndex].Name;
- if (ColName == "ColEdit")
- {
- formExecutiveInfoEntry frm = new frmExecutiveInfoEntry(this);
- form.dtDateJoin.Text = dataGridView1.Columns[1].DefaultCellStyle.Format = "dd-MM-yyyy";
- }
- }
- }

Amit GuptaRank #190 · 12.8K reputationPosted Apr 20, 2021, 9:03 AM EDT
Hiesh KidechaRank #4,751 · 327 reputationPosted Apr 18, 2021, 2:26 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 18, 2021, 2:28 AM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Apr 18, 2021, 12:47 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 19, 2021, 5:14 AM EDT
Sharma Raushan145 reputationPosted Apr 19, 2021, 5:56 AM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Apr 19, 2021, 8:01 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 20, 2021, 10:08 AM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 20, 2021, 10:10 AM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Apr 20, 2021, 1:47 PM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Apr 21, 2021, 12:28 PM EDT
Amit GuptaRank #190 · 12.8K reputationPosted Apr 22, 2021, 7:20 AM EDT
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Apr 28, 2021, 9:36 AM EDT