Sep 16, 2001 #1 gaz40 Programmer Sep 16, 2001 1 GB How do you insert text from a edit box into a flexigrid or a spreadsheet?
Sep 18, 2001 #2 RickCrone Programmer Sep 18, 2001 3 US 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. Upvote 0 Downvote
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.