Objective Grid: Adding empty rows after the last record

Article ID: 502
Last updated: 16 Apr, 2018
Article ID: 502
Last updated: 16 Apr, 2018
Revision: 3
Views: 1592
Posted: 12 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


Can I add empty rows at the end of the grid after the last record?


Cause



Action


You could override GetRowCount() like this:

ROWCOL CODBCQueryView::GetRowCount()
{
return CGXRecordWnd::GetRowCount() + GetGridRect().Height() / GetDefaultRowHeight();
}

This article was:   Helpful | Not helpful
Report an issue
Article ID: 502
Last updated: 16 Apr, 2018
Revision: 3
Views: 1592
Posted: 12 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category