Hi,
I implemented a way (googling) to change a row's height in the grid from the
code. It works fine, but
the datagrid needs to be in read only mode ; for now this is ok.
However, to repaint the client area i need to toggle the ReadOnly flag ;
ReadOnly = false;
....
ReadOnly = true; // => here the grid repaints (with the changed row height)
I tried Refresh, Invalidate, Update instead but they don't trigger a repaint
(so without
toggling read only, wich stays set to true). Any suggestions ?
---
Another related problem is that if there is a horizontal scrollbar on the
grid, a row's height is
resized programatically , the current cell is on that resized row and scrolls
underneath the
horizontal scroll bar then one line (1 pixel high) of the current cell stays
drawn just under the
horizontal scroll bar. I did not notice this problem with a standard data
grid, resizing a row
manually. Any suggestions or reasons ?
(using VS 2003)
Thanks,
AinO.
I implemented a way (googling) to change a row's height in the grid from the
code. It works fine, but
the datagrid needs to be in read only mode ; for now this is ok.
However, to repaint the client area i need to toggle the ReadOnly flag ;
ReadOnly = false;
....
ReadOnly = true; // => here the grid repaints (with the changed row height)
I tried Refresh, Invalidate, Update instead but they don't trigger a repaint
(so without
toggling read only, wich stays set to true). Any suggestions ?
---
Another related problem is that if there is a horizontal scrollbar on the
grid, a row's height is
resized programatically , the current cell is on that resized row and scrolls
underneath the
horizontal scroll bar then one line (1 pixel high) of the current cell stays
drawn just under the
horizontal scroll bar. I did not notice this problem with a standard data
grid, resizing a row
manually. Any suggestions or reasons ?
(using VS 2003)
Thanks,
AinO.