Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

populating flexigrids

Status
Not open for further replies.

gaz40

Programmer
Joined
Sep 16, 2001
Messages
1
Location
GB
How do you insert text from a edit box into a flexigrid or a spreadsheet?
 
I hope you can get your text from the edit box...

To get it to the MSFlexGrid you can use the SetTextMatrix() member function.

In this example:

The variable name I have associated with my flex grid is m_chrg_grd

I am using a (int) variable 'current_row' for the row I want to write to and I'm placing my data in the first column (column 0).

My data is coming from a CRecordSet and is in rvw_chrgdetail.m_chrg_num... you will want to use what ever variable your data is in.

Code:
m_chrg_grd.SetTextMatrix(current_row,0,rvw_chrgdetail.m_chrg_num);

I hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top