Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hi DatetimePicker control Pin
somagunasekaran11-May-08 18:50
somagunasekaran11-May-08 18:50 
GeneralRe: Hi DatetimePicker control Pin
Abhijit Jana11-May-08 19:06
professionalAbhijit Jana11-May-08 19:06 
GeneralRe: Hi DatetimePicker control Pin
somagunasekaran12-May-08 1:53
somagunasekaran12-May-08 1:53 
Questionc# can not load a c++ DLL Pin
sharp_k11-May-08 16:43
sharp_k11-May-08 16:43 
AnswerRe: c# can not load a c++ DLL Pin
Christian Graus11-May-08 17:06
protectorChristian Graus11-May-08 17:06 
GeneralRe: c# can not load a c++ DLL Pin
sharp_k11-May-08 18:25
sharp_k11-May-08 18:25 
Question[Message Deleted] Pin
mary okon11-May-08 13:29
mary okon11-May-08 13:29 
AnswerRe: How to Create Login in C# Pin
Christian Graus11-May-08 14:32
protectorChristian Graus11-May-08 14:32 
AnswerMorons Pin
Christian Graus11-May-08 16:40
protectorChristian Graus11-May-08 16:40 
GeneralRe: Morons Pin
Mark Salsbery11-May-08 16:52
Mark Salsbery11-May-08 16:52 
GeneralRe: Morons Pin
Christian Graus11-May-08 17:06
protectorChristian Graus11-May-08 17:06 
GeneralRe: Morons Pin
Vikram A Punathambekar11-May-08 18:42
Vikram A Punathambekar11-May-08 18:42 
GeneralRe: Morons Pin
Christian Graus11-May-08 19:44
protectorChristian Graus11-May-08 19:44 
QuestionAdding a Record via LINQ Pin
belzer11-May-08 11:39
belzer11-May-08 11:39 
QuestionTooltip for TrackBar(Slider Bar)? Pin
jamilkhan00711-May-08 9:52
jamilkhan00711-May-08 9:52 
AnswerRe: Tooltip for TrackBar(Slider Bar)? Pin
CodingYoshi11-May-08 10:03
CodingYoshi11-May-08 10:03 
GeneralRe: Tooltip for TrackBar(Slider Bar)? Pin
jamilkhan00711-May-08 10:25
jamilkhan00711-May-08 10:25 
GeneralRe: Tooltip for TrackBar(Slider Bar)? Pin
CodingYoshi11-May-08 12:39
CodingYoshi11-May-08 12:39 
QuestionKeyboard Shortcut for Windows Service Pin
M.SADEGHI11-May-08 8:05
M.SADEGHI11-May-08 8:05 
AnswerRe: Keyboard Shortcut for Windows Service Pin
Giorgi Dalakishvili11-May-08 8:28
mentorGiorgi Dalakishvili11-May-08 8:28 
QuestionPicturebox confusion Pin
Eric25611-May-08 6:14
Eric25611-May-08 6:14 
AnswerRe: Picturebox confusion Pin
CodingYoshi11-May-08 7:11
CodingYoshi11-May-08 7:11 
GeneralRe: Picturebox confusion Pin
Eric25612-May-08 3:08
Eric25612-May-08 3:08 
AnswerRe: Picturebox confusion Pin
Christian Graus11-May-08 12:29
protectorChristian Graus11-May-08 12:29 
QuestionCopying Formatted Text from DataGrid Pin
User 1278211-May-08 5:47
User 1278211-May-08 5:47 
I've been searching for how to do this for quite awhile, so please forgive me if the answer is easy.

I have a DataGrid displaying numbers and based on the value of number the cell is formatted (e.g. ForeColor). I use Clipboard.SetDataObject(dataGridMatrix.GetClipboardContent()); to copy the DataGrid (ClipboardCopyMode has been enabled).

When I paste into Excel, i get the values as expected but with no formatting.

Is there a way to copy the formatting?

My understanding is the grid is copied as HTML which could contain formatting and which I know Excel is capapable of interpreting.

Thanks

modified 12-Jul-20 21:01pm.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.