|
-
May 5th, 2002, 07:41 PM
#1
MSFlexgrid is killing me help!!!!!
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!!!
-
May 6th, 2002, 02:32 AM
#2
Re: MSFlexgrid is killing me help!!!!!
Hi,
You can take a look at my small tutorial at http://www.geocities.com/contactgirish/FlexGrid.txt and let me know if thats what you are looking for.
p.s. I heard that dbGrid is a better alternative to flexgrid. Let me also tell you that i havent used dbgrid till date. I am giving you this info. based on hearsay.
http://www.geocities.com/contactgirish/homepage.html>> VC++ Links,Code,Tutorials,Downloads & Notes.
If you have some time, you can sign the guestbook there. Thank you.
-
December 5th, 2002, 10:15 AM
#3
HI
I worked on the code you provided .and Let me tell you that It work perfectly!! Now I'm done with this problem .thanks a lot .I appreciate your help!
Now can you please show me how to use the other methods in the control ? is there any documentation about all the other method ? please let me know .
Thanks a lot for your help
xcreator
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|