Embedding a usercontrol with a button. Need the following behavior. Getting closer but could use some assistance please..
1. When any cell in a row is clicked the entire row displays highlighted (including cell with user control). The usercontrol should be active so in this case the button should be active and if clicked should "work"
2. If a usercontrol cell is clicked, the entire row should be selected & highlighted and the usercontrol should "work". In this case if a button on a given row is selected the row should become selected & highlighted and the button click event should fire.
Thanks in advance.
In addition to CellClickAction (which exists on the Override and also on the UltraGridColumn), you should check out the EnterEditModeMouseBehavior property on the UltraControlContainerEditor. This property allows you to forward the click messages to the EditingControl when the user clicks on the cell and it's not in edit mode. This only makes sense if the RenderingControl and the EditingControl are the same type or at least look the same and have the button in the same place, of course.
Thanks Mike. I think I'm having a problem understanding how putting a control in a cell works.
When i try and grab an instance of the object in the cell to set a property (eg when putting a ultraformattedlinklabel in), the cell is actually linked to a single instance which of course sets the property for every cell in the column instead of just for that cell.
On the initialize layout I'm:
URLLinkEditor URLLinkEditorControl = new URLLinkEditor(ultraFormattedLinkLabelEditor, ultraFormattedLinkLabelRenderer);
URLLinkEditorControl.EnterEditModeMouseBehavior = Infragistics.Win.UltraWinEditors.
EnterEditModeMouseBehavior.EnterEditModeAndClick;
layout.Bands[0].Columns[2].Editor = URLLinkEditorControl;
------------
I'm assigning an instance of URLLinkEditor (my class) with a reference to the 2 controls instantiated on the form (which is what the example shows)
but this results in an undesirable situation where I need to set properties on the Link object differently for each cell in the column.
Could you please clarify how I can make this work. It's holding things up on multiple fronts where we need to do similar things.
Thanks, S