By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,715 Members | 1,219 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,715 IT Pros & Developers. It's quick & easy.

GridView Column to Clipboard via a Button

P: n/a
I have searched all over and can not seem to find an effective way to simply
copy the contents of a ASP:gridview column to the clipboard based on a button
or similar HTML or ASP.NET control.

ASP 2.0 web application with VB.NET code developing in Visual Studio 2005 Pro.

Gridview has several columns, and users need the ability to copy one of the
columns to the clipboard for pasting into a separate app (that already has
the ability to paste multiple inputs in from the clipboard).

I have no problem creating another single-column gridview for this purpose,
or even copying the desired column's contents into some other object or array
to do this, but have not been able to find a decent example of copying to the
clipboard via a web form button or similar control.

Any examples or suggestions would be greatly appreciated.

As always, thanks in advance for your help!
Sep 18 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi JDRaven,

Thanks very much for sharing your solution here. I'm sure this will benefit
the community a lot.

Just a side note, in case you're interested, have you considered exporting
the GridView to Excel and let your end-user copy/paste data from Excel?
This might be more easier for your user to use the data. (Just search
"GridView Export Excel" and you should be able to find more resources on it)

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 20 '07 #2

P: n/a
Thanks for the suggestion. That page already had an export to Excel feature
on it that they had been using for this purpose (and others), but wanted a
faster "one click" method for this purpose, which they use very frequently.
This allows them to get all the values into their clipboard without having to
export to excel, select the values (for a specific region), then copy. Will
probably save them 12-15 seconds an occurrence. They better use it a lot to
recover the 12 hours or so I put into researching and implementing this for
them ;o)

Again, thanks for the help, and have a great night!

""Walter Wang [MSFT]"" wrote:
Hi JDRaven,

Thanks very much for sharing your solution here. I'm sure this will benefit
the community a lot.

Just a side note, in case you're interested, have you considered exporting
the GridView to Excel and let your end-user copy/paste data from Excel?
This might be more easier for your user to use the data. (Just search
"GridView Export Excel" and you should be able to find more resources on it)

Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Sep 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.