How to get ColAttr of Grid?

Hi @all,

I've set special ColAttributes to a grid by:

        grid.SetCollAttr(actCol, colAttr)

Now I want to read these Attributes is there a simple way like:

        grid.GetColAttr(actCol) # e.g., knowing this method does not
exists

Or is the only way to iterate over the cells??

Thanx and best regards,
Marcus.

mkimpenhaus@plus.de wrote:

Hi @all,

I've set special ColAttributes to a grid by:

        grid.SetCollAttr(actCol, colAttr)

Now I want to read these Attributes is there a simple way like:

        grid.GetColAttr(actCol) # e.g., knowing this method does not exists

Something like this should do it:

  provider = grid.GetTable().GetAttrProvider()
  attr = provider.GetAttr(row, col, wxGridCellAttr.Col)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!