Обсуждение: Feature Request: move column in edit grid

Поиск
Список
Период
Сортировка

Feature Request: move column in edit grid

От
Willy-Bas Loos
Дата:
Hi,<br /><br />Is there any way to move a column in the edit grid?<br />I mean, without actually changing the table in
thedatabase.<br />It's doesn't have to be persistent.<br /><br />Cheers,<br /><br />Willy-Bas Loos<br /><br /><br
clear="all"/><br />-- <br />"Patriotism is the conviction that your country is superior to all others because you were
bornin it." -- George Bernard Shaw<br /> 

Re: Feature Request: move column in edit grid

От
Dave Page
Дата:
On Tue, Jun 23, 2009 at 2:20 PM, Willy-Bas Loos<willybas@gmail.com> 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
Дата:
>No.<br /><font color="#888888">>--<br /> >Dave Page<br /></font><br />So what would it take to implement
that?<br/><br />(anyone else on this list that would like such a feature?)<br /><br />-- <br />"Patriotism is the
convictionthat your country is superior to all others because you were born in it." -- George Bernard Shaw<br /> 

Re: Feature Request: move column in edit grid

От
Dave Page
Дата:
On Fri, Jun 26, 2009 at 2:11 PM, Willy-Bas Loos<willybas@gmail.com> 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