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. Image for the cookie policy date

GDBG MonthCallendar Cell

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

Regards,
MS

2 Replies

AD Administrator Syncfusion Team 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


MS Marek Solarski August 4, 2006 05:48 PM UTC

Thanks, it helped!

Loader.
Live Chat Icon For mobile
Up arrow icon