Is there a way to use an editor to have a drop down list of links? I want to be able to select at item in the list or click one that will pop up another control to edit more information on that item.
Thank you,
Dusty
I am now thinking that it doesn't really make sense...how do i know if they are just selecting the item in the dropdown or if they want to select the link to edit the item...So, probably a better design would be an ultracomboeditor or something like that which would allow a button next to each entry.
Hi Dusty,
I agree that your original proposal doesn't make sense. Unfortunately, UltraCombo won't let you use a button in a cell.
What you would have to do in a case like this is write your own DropDown control. This is a lot easier than it sounds. What you do is use UltraTextEditor and add a DropDownEditorButton to the ButtonsRight collection. Set the Control property of this button an UltraWinGrid control. This will give you a dropdown grid control. You can attach it to a grid cell by setting the EditorControl property of the column to the UltraTextEditor control.
Then you just have to handle some events to deal with what happens when the user selects a row in the dropdown grid and when the user drops down the list.
Hi Mike - thank you for the response. I just put in the ultratexteditor with the grid - that will definitely work for what i want. Something I haven't quite figure'd out yet though is how do i get my binding working correctly? ie - i have the main grid bound to a dataset with a value for that column. I then have another dataset with a bindingsource for all the options that will go in that dropdown grid. I set the datagrid datasource to that bindingsource - but i have a disconnect between the 2 datasources - my main grid has it's id value, and i click the dropdown and the grid shows with my list - but it doesn't match them, etc. Before with the combobox, i had the id set as valuemember and the text value as the displaymember and it matched up correctly in my list. Can i still get this bound correctly so it knows which item is matched in my inner grid list?
Thanks,
I think you would have to implement this yourself, unfortunately. You could do it using a DataFilter, but this would be a bit tricky.
Ok - thanks, Mike. I may talk the users out of this one :-) and into a different design.