MFC Grid manual

How do I add a new row to the grid?

See the this article which explains how to create a C++ class, objects of which can be added to the grid.
//Create some object
CTestClass* pDO = new CTestClass();

//Add to the end of the grid
Dapfor::GUI::HITEM handle = m_Grid.Add(pDO);

//Add a new object as a child of the previous added item. 
CTestClass* pDO1 = new CTestClass();
m_Grid.Add(pDO1, handle);

//Add other object as a child of the first row. The new row will be added to the beginning.
CTestClass* pDO2 = new CTestClass();
m_Grid.Add(pDO2, handle, Dapfor::GUI::GI_FIRST);

//Freezes the row.
CTestClass* pDO3 = new CTestClass();
m_Grid.Add(pDO3, Dapfor::GUI::GI_FIXED_ROOT);