HiNA for Windows Forms 2008v2. I have an UltraGrid bound to a binding source which displays 5 field of the underlying record per record. I need to be able to click on a row in the UltraGrid and display all fields of the underlying record (around 15). The Row Edit sample seems to be doing what I need but it is bit complex to understand. Is there a simpler example that I can look at to start with?Many ThanksRegards
Hi,
You can go through the following link in our online help that might help to accomplish your requirements.
http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=WinGridRowEditTemplate_Adding_a_WinGridRowEditTemplate_Dialog_Box_To_WinGrid.html
Regards,
Priya
HiI have progressed using the article. Many thanks.A couple of questions;1. How can I make the proxy cells appear as tick box or drop down editor for some fields?2. At present the RowEdit dialog appears every time I click on an UltraGrid row. How can I make it so it only appears when I click on a button in a column of UltraGrid?ThanksRegards
yahya01 said:1. How can I make the proxy cells appear as tick box or drop down editor for some fields?
The proxies will display using the same editor that the grid uses. So if you have a boolean field, then the proxy should automatically use a CheckBox and if you have a ValueList on the grid column, then the proxy will show the same list.
If these fields exist in the grid, but are hidden, it should still work. But if these fields don't exist in the grid at all, then they will not show up in the RowEditTemplate at all - at least I don't think they will. Either way, you can simply put an UltraCheckEditor or UltraComboEditor on the RowEditTemplate and bind it to the fields you want.
yahya01 said:2. At present the RowEdit dialog appears every time I click on an UltraGrid row. How can I make it so it only appears when I click on a button in a column of UltraGrid?
When the RET shows up is determined by the RowEditTemplateUIType property on the Override object. There's no option to make it show up via a button in a cell, but you could use the RowSelectorImage setting so the RET will display when the user clicks on the RowSelector.
If you prefer a button in a cell, then what you would do is add an unbound column to the grid and set it's Style to Button. Then handle the ClickCellButton event of the grid and show the RET manually by calling the ShowEditTemplate method on the row. In this case, you would probably just use grid.ActiveRow, since clicking the button will activate the row.
And you would set RowEditTemplateUIType to None, of course, since you don't want any of the default UI choices.