Topic for the windows application in month calendar control
sir ,I want to add holiday in month calendar in windows application in c#. When i click the calendar cell to display the value in datagridview.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Vasu GadhiyaRank #7,540 · 239 reputationPosted Jul 11, 2014, 10:50 PM EDT
------------------
DataTable dt = new DataTable();
DataColumn dc = dt.Columns.Add("Dates", typeof(string));
DataRow dr = dt.NewRow();
dr[0] = monthCalendar1.SelectionRange.Start.ToString("dd-MM-yyyy");
dt.Rows.Add(dr);
DataRow dr2 = dt.NewRow();
dr2[0] = monthCalendar1.SelectionRange.End.ToString("dd-MM-yyyy");
dt.Rows.Add(dr2);
dataGridView1.DataSource = dt;
------------------