How can i assign UltraButton to UltraGrid Cell
you can use the following code to enable buttons for all cells of a column
this.customersUltraGrid.DisplayLayout.Bands[0].Columns[0].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Button;
Then, there's a ClickCellButton event that you can handle
Yes, you are right in case of assigning through the Style...But my requirement is i should have the name of the Control differently(namely lkp_Customer) this would cause some action.....If i am able to Set the Control to the Cell the way we do EditorControl i can do...
if not, i can assign UltraButton to Grid Cell...how can i name the Button when i set columnstyle as button
I don't think that you have a chance to assign a name to those buttons. There's a reference to the cell that caused the click within the eventargs anyway so you should be able to determine which cell has been clicked.
Another option would be to imlement derive your own subclass from button and implement IProvidesEmbeddableEditor.
Another thing that just came into my mind would be to use an infragistics texteditor as editor for the cell. Within that texteditor you can easily add a button. Then you could try if you can change the size of the column, so that only the button part of the texteditor is visible. That's just an idea. I didn't test that.
Just for curiosity: Why do you need a different name for each button anyway?
Hi Andre,
Thanks for reply, i have seen in forum adding a UltraButton to Cell is the new feature in next version. Basically i am building the framework, Actions will be executed based on the name of the Control that i map at initializer, in one of the requirements i have to place the button to show popup...that's where i struck..
Probably i have to workaround to get into my requirement
anyhow, your reply is helpful.
Regards
pvm444