1 |
# Copyright (c) 2001 by Intevation GmbH |
# Copyright (c) 2001, 2002 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
106 |
|
|
107 |
# The second parameter means that the grid is to take ownership |
# The second parameter means that the grid is to take ownership |
108 |
# of the table and will destroy it when done. Otherwise you |
# of the table and will destroy it when done. Otherwise you |
109 |
# would need to keep a reference to it and call it's Destroy |
# would need to keep a reference to it and call its Destroy |
110 |
# method later. |
# method later. |
111 |
self.SetTable(self.table, true) |
self.SetTable(self.table, true) |
112 |
|
|
113 |
#self.SetMargins(0,0) |
#self.SetMargins(0,0) |
114 |
self.AutoSizeColumns(false) |
|
115 |
|
# AutoSizeColumns would allow us to make the grid have optimal |
116 |
|
# column widths automatically but it would cause a traversal of |
117 |
|
# the entire table which for large .dbf files can take a very |
118 |
|
# long time. |
119 |
|
#self.AutoSizeColumns(false) |
120 |
|
|
121 |
self.SetSelectionMode(wxGrid.wxGridSelectRows) |
self.SetSelectionMode(wxGrid.wxGridSelectRows) |
122 |
|
|