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,
in the UltraControlContainerEditor you can set a control for EditMode and a RenderingControl. When you set the control on both properties the buttons are displayed the whole time.
I have on the control in my child band also several texboxes, do you know how i can use DataBinding there?
How can i bind foreach child row other values in the textboxes of the control? Any ideas?
Thanks in advance.
linksaussen said:How can i bind foreach child row other values in the textboxes of the control? Any ideas?
I don't understand what you want to do. You can bind any control you want to bind to anything you want to bind it to. What does the ControlContainerEditor have to do with it?
Are you saying you want to bind your controls to the same fields that are in the grid? Why would you want to do that? What's your goal here?
Bindinging the RenderingControl controls won't work, I am sure, since one control service all cells that are not in edit mode at once.
I can see how there might be some usefulness to binding the EditingControl, but I'm really not sure what that would be.
Hi Mike,
i have a grid with two bands. In the child band, I have displayed only one cell (in the dataset are more). In this displayed cell I would like to view using an UltraControlContainerEditor several controls. (Buttons, text boxes, etc.)
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?
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?
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.
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.