I have a grid in which one column should contains a file path. And i want a Button in it, which displays a dialog where the user can select a file, and the path of the selected file or directory should filled into the cell.
I've done a new class named BrowseEditor which is derived from UltraTextEditor. I add a EditorButton to the right side of the UltraTextEditor which displays the OpenFile-Dialog. That works correctly, but when i want to fill the value from the DialogBox to the cell, nothing happens to the grid.
I set the Value thru UltraTextEditor.Value property. The Value property stores always the value which was stored last time thru it. But it makes no effect on the grid row or cell.
How i set the value to the active row?
Regards
Hi,
The grid doesn't use the control itself - the control simply provides the grid with a copy of it's internal editor.
Setting the Value on the UltraTextEditor, therefore, will have no effect on the grid. It would not make sense for it to do so, anyway, since the UltraTextEditor has no context for which cell in the column you would be settings.
Anyway, the easiest thing for you to do is set grid.ActiveCell.Value.