Hi Gurus !
I’m having some problems about working with the microsoft Flexgrid control.Actually I’ve designed a dialog containing this control and I have to populate a total of 7 Rows in it.My problem is that I don’t really know how to code the data(strings) into every cell.below is what I tried in vain in one of my functions:

Void CactivexDlg::initData(int m_iColumn)
{
Cstring lsData ; //string to be returned.
Int liRows // the controls rows

Switch(m_iColumn) // go through the columns in the control
{
case 0:

liRows = m_ctlFGrid.GetRows(); // get the rows
// populatee the cells with data
switch (liRows)
{
case0:
lsData = “data one”;
break;
case1:
lsData = “data two’;
break;
case 2:
lsData = “data number tree”;
break;
case 3:
lsData = “fourth data”;
break;
case4:
lsData = “fifth data”;
break;
case 5:
lsData = “sixth data”;
break;
case 6:
lsData = “seventh data”;
break;
}
break;
}
return lsData;
}
Please tell me what is wrong with my code and the question: wich method do I use to populate the cells in the MSFlexgrid control and how do I use it please help me !!!!!!!!
Thanks a lot .




I'm a fan of computers I want to know their heart That's why I decide to login for new knowledges So everybody e-mail me or just answer me!!!