Hi,
I need help like i have to add 2 button and a lable(""_More..") within the UltraWinGrid cell as in below screen shot . The functionality should be as:
1. On the click of lable(""_More..") the cell will display whole description by expanding the cell height.
2. Button1 and button2 will popup another window on the basis of the ID associated with Cell.
Please help me out.
Thanks
Anupam Shukla
The UltraControlContainerEditor was not added until a much later version. So you would have to upgrade to the latest version in order to use it.
In any older version, you would have to use a CreationFilter, as I said. This is an advanced technique for working with the Infragistics Presentation Layer Framework and manipulating the UIElements directly. This will be very complex and difficult to implement. But if you want to try it, I'd recommend starting with research CreationFilters here on the forums. There are lots of discussions and some sample projects of CreationFilters that do all sorts of things.
You should also get the Infragistics UIElementViewer Utility. It will be a huge help.
I am using Infragistic v5.2/v7.3 and there is not any UltraControlContainerEditor control available. So please suggest me that how i bind a control in cell.
Hi Anupam,
What version of the grid are you using?
There's nothing built-in to the grid that will do what you have here. But if you are using a recent version of NetAdvantage, you could use the UltraControlContainerEditor to embed a UserControl that you create into the grid cell. So you could create a control that fires events when the buttons are clicked and then respond to those buttons however you like.
Another option would be to use a CreationFilter to add buttons and a label into the bottom of the cell. This is much more complex, as CreationFilters are something of an advanced programming technique, but this could be done in any version of the grid.
The way you get buttons in a cell is by assigning an editor-providing control (for example, an UltraTextEditor) to the column's EditorComponent/EditorControl property, then adding members to the UltraTextEditor's ButtonsRight or ButtonsLeft collection. The problem is that there is really no support for getting the label in there, short of implementing your own custom control and then using the UltraControlContainerEditor control to host your custom control within the cell.