void DataColumn::recalculateRowLength() { // Goes through the DataRow list in the DataColumn to determine // what the longest string in the DataColumn is m_rowLength = m_name.length(); DataRow* currentRow = m_firstRow; while ( currentRow != NULL ) { if ( currentRow->getText().length() > m_rowLength ) { m_rowLength = currentRow->getText().length(); } currentRow = currentRow->getNext(); } }