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.
Up arrow icon