954,551 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

MSHFLEXGRID copy cells

I am getting confused with trying to select an area of a mshflexgrid and copy it to the clipboard.

I am clicking the top left cell of the required area, then + bottom right cell, then clicking a button containing the code:

Clipboard.Clear
Clipboard.SetText grd.Clip

However this only copies the first selected box's text to the clipboard.


Strangely, if I put the text 'msgbox(grd.col)' in the grid mousedown event I get a messagebox of the col number but also when I now do shift+(last cell) the area highlights and clicking the button now copies the area to the clipboard!

What am I doing wrong, I don't want to have to have the messagebox come up every time!

Thanks

skyshare
Newbie Poster
10 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

I have found that selecting the cells and moving the curser off the grid leaves the cells selected so that solves my problem in a way

skyshare
Newbie Poster
10 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You