Hi Everyone,
I have a grid on a winform. The grid has a "notes" column in it. When the user goes to edit the notes, I have a little popup - text editing window appear - something similar to the text property drop down editor in the property sheet of visual studio.
What I can't figure out is how to correctly position the little popup text editing window. It should be displayed immediately below the grid's current cell and left aligned with the cell.
The problem I'm having is how to determine the absolute position of the grid's current cell, taking into account other grid elements (header rows, group header rows, new record rows), and also taking into account the Y position, especially when the grid may be scrolled to the left.
I've put the code to display the popup in the CellEditorInitialized event of the grid, which works great for knowing which cell is being edited, with the event args. But only if that event also had mouse args.
Anyone have any ideas?
Thanks much!
Dan
I have a grid on a winform. The grid has a "notes" column in it. When the user goes to edit the notes, I have a little popup - text editing window appear - something similar to the text property drop down editor in the property sheet of visual studio.
What I can't figure out is how to correctly position the little popup text editing window. It should be displayed immediately below the grid's current cell and left aligned with the cell.
The problem I'm having is how to determine the absolute position of the grid's current cell, taking into account other grid elements (header rows, group header rows, new record rows), and also taking into account the Y position, especially when the grid may be scrolled to the left.
I've put the code to display the popup in the CellEditorInitialized event of the grid, which works great for knowing which cell is being edited, with the event args. But only if that event also had mouse args.
Anyone have any ideas?
Thanks much!
Dan