I'm embedding a panel with several buttons using UltraControlContainerEditor. I want the buttons to be displayed and clickable all the time. Is there a way to do this?
Currently, the buttons will only display when the cell is activated.
Hi,
I just wanted to know if you were able to solve your issue based on our's suggestions or you still need help? Just let me know.
Thank you.
linksaussen said: My question is how can I bind these controls on the UltraControlContainerEditor to the corresponding row in the grid. How do I implement the binding in my case?
My question is how can I bind these controls on the UltraControlContainerEditor to the corresponding row in the grid.
How do I implement the binding in my case?
What you would have to do is create a single column that contains all of the data you need. So, one approach you could take would be to add an unbound column to your grid whose DataType is a custom object which contains properties for all of the other values in the row. In fact, such an object already exists - the underlying row in your data source. So you could create a column of type object and populate that column in the InitializeRow event of the grid with the ListObject property of the row.
Then you create a control that takes that ListObject (whatever it may be depending on your data source) and can read/update it's data.
jquerijero said:I did try using the RenderingControl. The only thing is that the buttons do display but they are not active. I still need to click twice to get the click event. I want to be able to click the buttons only once.
this.ultraControlContainerEditor1.EnterEditModeMouseBehavior = EnterEditModeMouseBehavior.EnterEditModeAndClick;
Hello linksaussen,
You should create custom class, which implements INotifyPropertyChanged, also your user control should implement INotifyPropertyChanged, and should has public property of type of your custom class. In the setter of this public property, you could make your bindings. When this is done you could create a data source for your UltraGrid and to bind it. I have created a small sample in order to demonstrate my suggestion. I hope that this will help you. Also I suggest you to open another forum thread about this issue, in order to get more accurate assistance regarding this issue.
Please let me know if you have any further questions.
Hello jquerijero,
UltraControlContainerControl has property RenderingControl property, which determines the control which will be used for rendering the editor when not in edit mode.
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.v11.1~Infragistics.Win.UltraWinEditors.UltraControlContainerEditor~RenderingControl.html
Also it has and EditingControl property, which determines control which will be used for editing when the editor goes into edit mode.
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.1/CLR2.0/html/Infragistics2.Win.v11.1~Infragistics.Win.UltraWinEditors.UltraControlContainerEditor~EditingControl.html
So you should set for this purities an instance of your user control, please note that RenderingControl and EditingControl should be different instance of your custom control, otherwise you will get an exception.
Please let me know if you have any further questions