On May 16, 2012, at 7:17 AM, RUSSELL Thomas wrote:

> I cannot seem to find the right place to put this piece of code at all. 
> Everywhere I put it I either get an error or it just wads up my app.
> 
> I have code that is generated from the app wiz and tried putting the code in 
> the Grd class stuff where the column properties are set but it does not work 
> there.
> 
> Can someone give me some ideas where I would need to put this?

        The AppWizard-generated form does a lot of its "magic" in the datanav 
subframework; that's where the grid is actually created, which means you really 
can't change the instantiation code, which is what I gave in my example. 
Instead, go to the grid class (in your case, ui/GrdB1.py), and in the 
afterInitAll() method, add the line:

self.NoneDisplay = "--zilch--"

substituting the actually string you want to show. 

        

-- Ed Leafe



_______________________________________________
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/[email protected]

Reply via email to