Hello,
I am stuck on this simple issue. For example, I want to open a ValueList when I enter a cell that has a ValueList associated with it or click the cell that has a ValueList associated with it. I have tried different parameters that don't work and I think I am looking at this wrong. How can I do something like this? Thank you!!!
private void ultraGrid1_ClickCell(object sender, ClickCellEventArgs e)
{
if (e.Cell.Column.ValueList.ToString() == "Category")
e.Cell.Column.ValueList.DropDown(new Rectangle(0, 0, 10, 10), 0, "Advance Directive");
}
Hello James,
In order to do various action on an active cell you can use PerformAction on the grid. In your case when you activate a specific cell in the grid you need to use the AfterCellActivate event and then the PerformAction method called in the event with some parameters. As a parameter for the method you need to pass the “UltraGridAction.EnterEditModeAndDropdown” member of the UltraGridAction enumeration and this will cause the dropdown in this cell to be opened.
You can find more information about the PerformAction(UltraGridAction) method and the UltraGridAction enumeration here:
http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/HTML/Infragistics2.Win.UltraWinGrid.v12.1~Infragistics.Win.UltraWinGrid.UltraGrid~PerformAction%28UltraGridAction%29.html
http://help.infragistics.com/Help/Doc/WinForms/2011.2/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v11.2~Infragistics.Win.UltraWinGrid.UltraGridAction.html
I’ve implemented this suggestion in a simple sample which you could run and evaluate, please see attached zip.
Please let me know if you have any further questions.
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
This works *perfectly*. THANK YOU!!! :) :) :)