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.
精彩评论