$szTitle = "wxdbgridcolinfo"; include "./_header.inc"; ?>
this class is used to define columns to be shown, names of the columns, order and type of data, when using wxdbgridtablebase to display a table or query in a wxgrid
see the database grid example in wxdbgridtablebase for an introduction to using the wxdbgrid classes.
include files
<wx/dbgrid.h>
members
wxdbgridcolinfo::wxdbgridcolinfo
wxdbgridcolinfo::~wxdbgridcolinfo
wxdbgridcolinfo::addcolinfo
wxdbgridcolinfo(int colnumber, wxstring type, wxstring title, wxdbgridcolinfo *next)
default constructor. see the database grid example in wxdbgridtablebase to see two different ways for adding columns.
parameters
colnumber
~wxdbgridcolinfo()
destructor.
void addcolinfo(int colnumber, wxstring type, wxstring title)
use this member function for adding columns. see the database grid example in wxdbgridtablebase to see two different ways for adding columns.
it is important to note that this class is merely a specifier to the wxdbgridtablebase constructor. changes made to this datatype after the wxdbgridtablebase is called will not have any effect.
parameters colnumber
remarks
as wxdbtable must be defined with to have columns which match those to by a wxdbgridcolinfo info structure as this is the structure which informs the grid of how you want to display your wxdbtable. if no datatype conversion or the referenced column number does not exist the the behavior is undefined.
see the example at wxdbgridcolinfo::wxdbgridcolinfo.
include "./_footer.inc"; ?>