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.
If I got you right this time, I think that you could use the following line in the 'CellClick' event:
e.Cell.EditorResolved.DropDown();
Please feel free to let me know if I misunderstood you or if you have any other questions.
No worries. If you have any enquiries please feel free to ask.
Hi Boris
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.
Hi
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().
Ho can a i force a cell proxy into edit mode?