Thanks Nicholas.... off coding I will go.
Just realised it will be a bit more difficult than I first imagined as my
datagrid has multiple TableStyles associated with it along with various
ColumnStyles. So getting the underlying DataTable column names won't be
enough, I will have to match them up against defined TableStyles to find out
what the column alias displayed on the dataGrid really is.
Amazing how something so simple can turn out to be an utter pain in the
tushka!
Cheers,
PeterZ
"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> PeterZ,
>
> Unfortunately, you are going to have to write it yourself. There is
> nothing in the datagrid that appears to store the column headings when
> copying and pasting.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "PeterZ" <_(E-Mail Removed)> wrote in message
> news:crsion$3a1$(E-Mail Removed)...
>> Hi,
>>
>> In a running C# app with a datagrid control I select all rows in the
>> dataGrid using CTRL-A, I then paste into some other app like notepad or
>> Word but the column headings get left off.
>>
>> Is there any way of including column headings when copying/pasting from a
>> running datagrid to notepad? At this stage it looks like I have to write
>> my own code but would rather not if someone knows how to do it.
>>
>> Cheers,
>> PeterZ
>>
>>
>>
>
>