Feature Request: move column in edit grid
Feature Request: move column in edit grid
От:
Willy-Bas Loos <willybas@gmail.com>
Дата:
Hi,
Is there any way to move a column in the edit grid?
I mean, without actually changing the table in the database.
It's doesn't have to be persistent.
Cheers,
Willy-Bas Loos
--
"Patriotism is the conviction that your country is superior to all others because you were born in it." -- George Bernard Shaw
Re: Feature Request: move column in edit grid
От:
Dave Page <dpage@pgadmin.org>
Дата:
On Tue, Jun 23, 2009 at 2:20 PM, Willy-Bas Loos wrote: > Hi, > > Is there any way to move a column in the edit grid? > I mean, without actually changing the table in the database. > It's doesn't have to be persistent. No. -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com
Re: Feature Request: move column in edit grid
От:
Willy-Bas Loos <willybas@gmail.com>
Дата:
>No.
>--
>Dave Page
So what would it take to implement that?
(anyone else on this list that would like such a feature?)
--
"Patriotism is the conviction that your country is superior to all others because you were born in it." -- George Bernard Shaw
Re: Feature Request: move column in edit grid
От:
Dave Page <dpage@pgadmin.org>
Дата:
On Fri, Jun 26, 2009 at 2:11 PM, Willy-Bas Loos wrote:
>>No.
>>--
>>Dave Page
>
> So what would it take to implement that?
At first glance, this:
Index: pgadmin/frm/frmEditGrid.cpp
===================================================================
--- pgadmin/frm/frmEditGrid.cpp (revision 7945)
+++ pgadmin/frm/frmEditGrid.cpp (working copy)
@@ -115,6 +115,7 @@ SetStatusBarPane(-1);
sqlGrid = new ctlSQLEditGrid(this, CTL_EDITGRID,
wxDefaultPosition, wxDefaultSize);
+ sqlGrid->EnableDragColMove(true);
// Set up toolbar toolBar = new ctlMenuToolbar(this, -1, wxDefaultPosition,
wxDefaultSize, wxTB_FLAT | wxTB_NODIVIDER);
It appears to work in a 30 second test, but I'm sure it will have
broken something non-obvious.
Regards, Dave.
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com