Hi we have a cell in a ultrawingrid that has a valuelist thus making it a dropdown....
On click of that cell the rowedittemplate is shown. How can i get the contents of what is in my value list of that particular cell to display in the rowedittemplate without clicking on the dropdown button??
Hello Burmo,
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi... I cant run the app as im not using c# or vb.net with ultracontrols....
but from the code i can see that you output the value list to the console... (missunderstanding)
I need to display the values in the dropdown as if the user clicked on the dropdown button in the cell...
so if a cell has a value list of:
1
2
3
this displays when the user clicks on the drop down button...
I need to display this without the user clicking on the dropdown button.
Did you try the code in the cell click event? If so, I guess that your cell is not editable. If this is the case then you should use this code only when the cell is in editmode. If the cell is not in editmode then there is no editor component assigned to the cell object. If you are not able to run this code in the way you want please send me your code or a small sample project with your scenario.
Hi Boris
The cell is in editmode... Is there no way to do this on show of the rowedittemplate using the field on the rowedit template?
This might be happening because the 'UltraGridRowEditTemplate' control instance pops up as a modal dialog. I used the following settings in order to achieve the desired functionality in my sample:
ultraGridRowEditTemplate1.DisplayMode = Infragistics.Win.UltraWinGrid.RowEditTemplateDisplayMode.Modeless;
Please try it and let me know if it works for you.
Ho can a i force a cell proxy into edit mode?
Hi
e.Cell.EditorResolved.DropDown();
this only works if i click in that cell.... I need it to fire if i click in anycell.
I tried this code but it doesnt work
grid:ActiveRow:Cells[
"work"]:EditorResolved.DropDown().
No worries. If you have any enquiries please feel free to ask.
Thanks for your code on this.. it works... the trouble came in on the way we were doings with the rowedit template... but the code for droping down the list works well
thank you very much... sorry about the sleepless nights on this one... :)
What you need first is to make the desired cell as active cell and then perform an action in the WinGrid:
ultraGrid1.ActiveRow.Cells["work"].Activate(); ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode); // or ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditModeAndDropdown); ultraGrid1.ActiveRow.Cells["work"].EditorResolved.DropDown();
Please do not hesitate to ask if something comes up.