Hi,
You need to expose the datasource property of the datagridview to your custom toolstripControlHost. For example,
// Expose the MonthCalendar.FirstDayOfWeek as a property.
public Day FirstDayOfWeek
{
get
{
return MonthCalendarControl.FirstDayOfWeek;
}
set { value = MonthCalendarControl.FirstDayOfWeek; }
}
Please refer to the following article to get more information.
How to: Wrap a Windows Forms Control with ToolStripControlHost
http://msdn.microsoft.com/en-us/library/9k5etstz.aspx
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.