CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Posts
    63

    Question Inserting numerical value in MSFlexGrid control?

    Hi,
    I'm wondering how to insert a numerical value in CMSFlexGrid control.
    I tried converting the integer into string but it inserts blank .
    Code:
    ........
    int nValue = 3;
    CString strValue;
    strValue.Format("%i",nValue);
    m_ctrlFlexGrid->SetTextMatrix(3,1,strValue);
    .....
    I tried whatever the method present in CMSFlexGrid nothing seems to be working except the insertion of string values.
    Could any one rectify the problem.
    Thanking you
    Regards,
    Mohan
    Regards,
    Mohan

  2. #2
    Join Date
    Apr 2002
    Location
    New -york ny
    Posts
    22
    Hi
    try this : use the string variable to hold the integer value (like strValue = "integer" and place this value in the SetTextArray method of the control with of course the cell ID.
    let me know how it works .

    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
  •  





Click Here to Expand Forum to Full Width

Featured