On 11/4/13 5:25 PM, John Fabiani wrote:
> On 11/04/2013 03:43 PM, Paul McNett wrote:
>> On 11/4/13 9:37 AM, John Fabiani wrote:
>>> I could be way off with this but somewhere I recall that there was a way 
>>> have a non
>>> visible grid column (normally used for calc's) but I did not see anything 
>>> in the code
>>> that described how to do it.  If anyone knows please provide a hint.
>> col.Visible = False
>>
>>> I tried using Visible = False but it seems the grid no longer knows that 
>>> the column
>>> exist.
>> dGrid knows the column exists; wxGrid does not.
>>
>> Paul
>> _______________________________________________
>>
> 
> To my knowledge I'm not using wxGrid.
> 
> Assume that the following is the first column I setup is:
> 
> col = dabo.ui.dColumn(self,  Order=1, DataField="status_val",
>                               DataType="unicode", Caption="Status", 
> Sortable=False,
> Searchable=False,
>                               Editable=False, Expand=False, 
> HorizontalAlignment =
> 'Center',Visible = False)
> self.addColumn(col)
> 
> I would assume that the grid.col = 0 (zero)  is that correct?


Here's how it should work (pseudocode):

grd = dabo.ui.dGrid()
grd.addColumn(..., Visible=False)
grd.addColumn(..., Visible=True)

for idx, col in enumerate(grd.Columns):
        print idx, col.Visible

>>> 0 False
>>> 1 True


Paul

_______________________________________________
Post Messages to: Dabo-users@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/5278506d.8000...@ulmcnett.com

Reply via email to