开发者

Calendar Bolded Dates

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜