Paul, 

I added the following code to your demo to add a second grid and get the
same results on the new grid (without my mod mentioned below). Can you
verify?


lineGrd =
dabo.ui.dGrid(frm,DataSource=biz,RegID="transactiongridID",AlternateRowColor
ing =True,ColumnCount=3,SelectionMode = "Row",Editable =
False,MovableColumns = False,MultipleSelection = False)
lineGrd.Columns[0].Caption ="ID"
lineGrd.Columns[0].DataField = "id"
lineGrd.Columns[1].Caption ="name"
lineGrd.Columns[1].DataField = "name"
lineGrd.Columns[2].Caption ="valid"
lineGrd.Columns[2].DataField = "valid"
lineGrd.Columns[2].Width=400

frm.Sizer.append1x(lineGrd) 

Thanks,
Larry Long

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, August 14, 2007 5:03 PM
To: 'Dabo Users list'
Subject: Re: [dabo-users] Resizing grid column width triggers column resort

Paul,

I think that I found part of the issue...when I step thru the code below,
the IF is evaluating to True, so the self._headerSizing attribute is not
getting set to True by the else statement.

dGrid.py line 2912
        if not headerIsSizing and (
                                self.getColNumByX(x) ==
self.getColNumByX(x-2) == self.getColNumByX(x+2)):
                 
When I change the x-2 and x+2 to x-5 and x+5 respectively, it seems to work.

Larry Long

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul McNett
Sent: Monday, August 13, 2007 3:14 PM
To: Dabo Users list
Subject: Re: [dabo-users] Resizing grid column width triggers column resort

[EMAIL PROTECTED] wrote:
> When I resize a column the sort column event is firing.

I don't see this. I tested using dabo/ui/uiwx/dGrid.py on both Windows and
Linux, using wxPython 2.8.

--
pkm ~ http://paulmcnett.com


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to