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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you send text to msflexgrid using a button?

Status
Not open for further replies.

real

Programmer
Jan 20, 2001
15
US
im having trouble sending text to a grid using a button.

also, i put my code in for the fixedrows, but the text does not load when i do it. how can i fix these problems? can someone please help me with the LoadData() for the fixed rows (with text), and the text in the grid using the button?

thank you much in advance,
charles
 
i meant istrstream.

;-) Avendeval Sedai
[sub]yavoor@yahoo.com[/sub]

 
ooops... wrong thread. im sorry real.
Avendeval Sedai
[sub]yavoor@yahoo.com[/sub]

 
Hi,

I did something that migth help you...

I created an edit box that I hided. When I click on a cell of the flexgrid, I copy the text from the hidden edit box into the flexgrid. For this I use methods :
"GetCol()"
"GetRow ()" to determine which cell I clicked and then I use "SetText(CString Text)" method to write the text into the cell.

By this way the user think that he write directly to the cell of the flexgrid...

Hope this can help ya !


werbfred.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top