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.
Unfortunately, activation email could not send to your email. Please try again.

GDBG MonthCallendar Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

47395 Aug 3,2006 03:27 PM Aug 4,2006 01:48 PM Windows Forms 2
loading
Tags: GridControl
Marek Solarski
Asked On August 3, 2006 03:27 PM

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

Regards,
MS

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

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 01:48 PM

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.

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.

;