I want to know whether it's possible to make
wx.Grid.EnableGridLines(True) to draw grid lines on all
cells regardless of whether the grid has been populated with
data or not (just like Excel).
Grid lines are already drawn for all cells. Or do you refer to the empty space around the grid? In that case you just need to tell the grid to create more cells.
···
dody.wijaya2@asp.co.id wrote:
I want to know whether it's possible to make
wx.Grid.EnableGridLines(True) to draw grid lines on all
cells regardless of whether the grid has been populated with
data or not (just like Excel).
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
I want to know whether it's possible to make
wx.Grid.EnableGridLines(True) to draw grid lines on all
cells regardless of whether the grid has been populated with
data or not (just like Excel).
Grid lines are already drawn for all cells. Or do you refer to the
empty space around the grid? In that case you just need to tell the
grid to create more cells.
yes, i was refering to the empty space outside the existing
rows and columns. In my case, it was not that easy for the
grid to just create more cells, since the rows and columns
are binded closely to row/col in a database table, and
creating cells which don't have their pairs in the database
table would pretty break most of the codes.
I was looking for a simple solution that solve the
visual-side of the control without affecting any of the
basic grid and tablebase manipulation methods. Btw, while
waiting for this answers, I was having a lot of good time at
weekend toying with the wxWidget source (packaged inside
wxPython source targz), particularly grid.cpp line 7034:
// avoid drawing grid lines past the last row and col
//
right = wxMin( right, GetColRight(m_numCols - 1) );
bottom = wxMin( bottom, GetRowBottom(m_numRows - 1) );
I had this guess that those lines are related to the
solution, but since I'm no C++ programmer, I can't really
sure how to modify them. But then, this is not a simple one
(I would afterwards have to compile back into dll and manage
the code by myself).
A feature request to make this an option might receive some attention.
···
dody.wijaya2@asp.co.id wrote:
I want to know whether it's possible to make
wx.Grid.EnableGridLines(True) to draw grid lines on all
cells regardless of whether the grid has been populated with
data or not (just like Excel).> Grid lines are already drawn for all cells. Or do you refer to the
> empty space around the grid? In that case you just need to tell the
> grid to create more cells.yes, i was refering to the empty space outside the existing
rows and columns. In my case, it was not that easy for the
grid to just create more cells, since the rows and columns
are binded closely to row/col in a database table, and
creating cells which don't have their pairs in the database
table would pretty break most of the codes.I was looking for a simple solution that solve the
visual-side of the control without affecting any of the
basic grid and tablebase manipulation methods. Btw, while
waiting for this answers, I was having a lot of good time at
weekend toying with the wxWidget source (packaged inside
wxPython source targz), particularly grid.cpp line 7034:// avoid drawing grid lines past the last row and col
//
right = wxMin( right, GetColRight(m_numCols - 1) );
bottom = wxMin( bottom, GetRowBottom(m_numRows - 1) );I had this guess that those lines are related to the
solution, but since I'm no C++ programmer, I can't really
sure how to modify them. But then, this is not a simple one
(I would afterwards have to compile back into dll and manage
the code by myself).
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
A feature request to make this an option might receive some attention.
http://sourceforge.net/tracker/?atid=359863&group_id=9863
done, http://sourceforge.net/tracker/index.php?func=detail&aid=959849&group_id=9863&atid=359863
···
--
Best regards,
dody mailto:dody.wijaya2@asp.co.id