## wxGridTableBase

Grid table classes.

Derived from

wxObject

Data structures

Members

wxGridTableBase::wxGridTableBase
wxGridTableBase::~wxGridTableBase
wxGridTableBase::GetNumberRows
wxGridTableBase::GetNumberCols
wxGridTableBase::IsEmptyCell
wxGridTableBase::GetValue
wxGridTableBase::SetValue
wxGridTableBase::GetTypeName
wxGridTableBase::CanGetValueAs
wxGridTableBase::CanSetValueAs
wxGridTableBase::GetValueAsLong
wxGridTableBase::GetValueAsDouble
wxGridTableBase::GetValueAsBool
wxGridTableBase::SetValueAsLong
wxGridTableBase::SetValueAsDouble
wxGridTableBase::SetValueAsBool
wxGridTableBase::GetValueAsCustom
wxGridTableBase::SetValueAsCustom
wxGridTableBase::SetView
wxGridTableBase::GetView
wxGridTableBase::Clear
wxGridTableBase::InsertRows
wxGridTableBase::AppendRows
wxGridTableBase::DeleteRows
wxGridTableBase::InsertCols
wxGridTableBase::AppendCols
wxGridTableBase::DeleteCols
wxGridTableBase::GetRowLabelValue
wxGridTableBase::GetColLabelValue
wxGridTableBase::SetRowLabelValue
wxGridTableBase::SetColLabelValue
wxGridTableBase::SetAttrProvider
wxGridTableBase::GetAttrProvider
wxGridTableBase::CanHaveAttributes
wxGridTableBase::UpdateAttrRows
wxGridTableBase::UpdateAttrCols
wxGridTableBase::GetAttr
wxGridTableBase::SetAttr
wxGridTableBase::SetRowAttr
wxGridTableBase::SetColAttr

### wxGridTableBase::wxGridTableBase

wxGridTableBase()

### wxGridTableBase::~wxGridTableBase

~wxGridTableBase()

### wxGridTableBase::GetNumberRows

int GetNumberRows()

You must override these functions in a derived table class.

### wxGridTableBase::GetNumberCols

int GetNumberCols()

### wxGridTableBase::IsEmptyCell

bool IsEmptyCell(int row, int col)

### wxGridTableBase::GetValue

wxString GetValue(int row, int col)

### wxGridTableBase::SetValue

void SetValue(int row, int col, const wxString& value)

### wxGridTableBase::GetTypeName

wxString GetTypeName(int row, int col)

Data type determination and value access.

### wxGridTableBase::CanGetValueAs

bool CanGetValueAs(int row, int col, const wxString& typeName)

### wxGridTableBase::CanSetValueAs

bool CanSetValueAs(int row, int col, const wxString& typeName)

### wxGridTableBase::GetValueAsLong

long GetValueAsLong(int row, int col)

### wxGridTableBase::GetValueAsDouble

double GetValueAsDouble(int row, int col)

### wxGridTableBase::GetValueAsBool

bool GetValueAsBool(int row, int col)

### wxGridTableBase::SetValueAsLong

void SetValueAsLong(int row, int col, long value)

### wxGridTableBase::SetValueAsDouble

void SetValueAsDouble(int row, int col, double value)

### wxGridTableBase::SetValueAsBool

void SetValueAsBool(int row, int col, bool value)

### wxGridTableBase::GetValueAsCustom

void* GetValueAsCustom(int row, int col, const wxString& typeName)

For user defined types

### wxGridTableBase::SetValueAsCustom

void SetValueAsCustom(int row, int col, const wxString& typeName, void* value)

### wxGridTableBase::SetView

void SetView(wxGrid* grid)

Overriding these is optional

### wxGridTableBase::GetView

wxGrid * GetView() const

### wxGridTableBase::Clear

void Clear()

### wxGridTableBase::InsertRows

bool InsertRows(size_t pos = 0, size_t numRows = 1)

### wxGridTableBase::AppendRows

bool AppendRows(size_t numRows = 1)

### wxGridTableBase::DeleteRows

bool DeleteRows(size_t pos = 0, size_t numRows = 1)

### wxGridTableBase::InsertCols

bool InsertCols(size_t pos = 0, size_t numCols = 1)

### wxGridTableBase::AppendCols

bool AppendCols(size_t numCols = 1)

### wxGridTableBase::DeleteCols

bool DeleteCols(size_t pos = 0, size_t numCols = 1)

### wxGridTableBase::GetRowLabelValue

wxString GetRowLabelValue(int row)

### wxGridTableBase::GetColLabelValue

wxString GetColLabelValue(int col)

### wxGridTableBase::SetRowLabelValue

void SetRowLabelValue(int WXUNUSED(row), const wxString&)

### wxGridTableBase::SetColLabelValue

void SetColLabelValue(int WXUNUSED(col), const wxString&)

### wxGridTableBase::SetAttrProvider

void SetAttrProvider(wxGridCellAttrProvider* attrProvider)

Attribute handling give us the attr provider to use - we take ownership of the pointer

### wxGridTableBase::GetAttrProvider

wxGridCellAttrProvider* GetAttrProvider() const

get the currently used attr provider (may be NULL)

### wxGridTableBase::CanHaveAttributes

bool CanHaveAttributes()

Does this table allow attributes? Default implementation creates a wxGridCellAttrProvider if necessary.

### wxGridTableBase::UpdateAttrRows

void UpdateAttrRows(size_t pos, int numRows)

change row/col number in attribute if needed

### wxGridTableBase::UpdateAttrCols

void UpdateAttrCols(size_t pos, int numCols)

### wxGridTableBase::GetAttr

wxGridCellAttr* GetAttr(int row, int col)

by default forwarded to wxGridCellAttrProvider if any. May be overridden to handle attributes directly in the table.

### wxGridTableBase::SetAttr

void SetAttr(wxGridCellAttr* attr, int row, int col)

these functions take ownership of the pointer

### wxGridTableBase::SetRowAttr

void SetRowAttr(wxGridCellAttr* attr, int row)

### wxGridTableBase::SetColAttr

void SetColAttr(wxGridCellAttr* attr, int col)