HA
haneefm
Syncfusion Team
April 5, 2007 08:58 PM UTC
Hi RH,
Is there any way to force the dropdown when the cell receives the focus ?
>>>>>
Yes, One way you can do this by handling the TableControlCurrentCellActivated event and call the e.TableControl.CurrentCell.ShowDropDown() method to force to show the dropdown of the cell in a grid. Please try the suggestion and let me know if this helps.
private void gridGroupingControl1_TableControlCurrentCellActivated(object sender, GridTableControlEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.TableControl.CurrentCell.RowIndex,e.TableControl.CurrentCell.ColIndex);
if( style != null && style.CellType == "GridListControl" )
e.TableControl.CurrentCell.ShowDropDown();
}
Best regards,
Haneef
RH
Rahul Hans
April 7, 2007 01:48 PM UTC
HI Haneef
Thanks for your help. This was just what I needed
RH
>Hi RH,
Is there any way to force the dropdown when the cell receives the focus ?
>>>>>
Yes, One way you can do this by handling the TableControlCurrentCellActivated event and call the e.TableControl.CurrentCell.ShowDropDown() method to force to show the dropdown of the cell in a grid. Please try the suggestion and let me know if this helps.
private void gridGroupingControl1_TableControlCurrentCellActivated(object sender, GridTableControlEventArgs e)
{
GridTableCellStyleInfo style = e.TableControl.GetTableViewStyleInfo(e.TableControl.CurrentCell.RowIndex,e.TableControl.CurrentCell.ColIndex);
if( style != null && style.CellType == "GridListControl" )
e.TableControl.CurrentCell.ShowDropDown();
}
Best regards,
Haneef