开发者

Calendar Bolded Dates

开发者 https://www.devze.com 2023-04-01 05:45 出处:网络
I have a button in every row of my DataGridView.When that button is clicked, a calender should be displayed in which the selected dates (I have in list) should be bolded.The dates will be different fo

I have a button in every row of my DataGridView. When that button is clicked, a calender should be displayed in which the selected dates (I have in list) should be bolded. The dates will be different for different b开发者_StackOverflowuttons and so the bolded dates should also be changed for every button click. Is it possible to have a tag for every bolded date?

Is the single calender is sufficient or should I declare number of month calenders for every button.

I am very new to C#, please reply me the answer.


You can reuse the same Calendar control by specifying different BoldedDates.

DateTime[] myDates = {myDate1, myDate2};
calendar.BoldedDates = myDates;

Look at here and here for more details about bold dates.

0

精彩评论

暂无评论...
验证码 换一张
取 消