We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG MonthCallendar Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

47395 Aug 3,2006 07:27 PM UTC Aug 4,2006 05:48 PM UTC WinForms 2
loading
Tags: GridControl
Marek Solarski
Asked On August 3, 2006 07:27 PM UTC

Hi,
How can I (through code) focus DateTimePicker after the cell has dropped down.

Regards,
MS

Administrator [Syncfusion]
Replied On August 4, 2006 10:22 AM UTC

Hi Marek,

Please add the code below in the CurrentCellShowedDropDown event of the grid. This will help you to focus the dropdown control.

void gridDataBoundGrid1_CurrentCellShowedDropDown(object sender, EventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
GridDropDownMonthCalendarCellRenderer cr = cc.Renderer as GridDropDownMonthCalendarCellRenderer;
foreach(Control ctrl in cr.DropDownContainer.Controls)
{
ctrl.Focus();
Console.WriteLine(ctrl.Focused);
}
}

Regards,
Rajagopal

Marek Solarski
Replied On August 4, 2006 05:48 PM UTC

Thanks, it helped!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;