Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DatagridView
Message
De
14/03/2009 07:27:02
 
 
À
14/03/2009 07:04:10
Vishal Nyamagoudar
Swift Infocom India Pvt Ltd
Inde
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
01388027
Message ID:
01388030
Vues:
55
>Hello Everybody,
>
>Any body can tel me how to rtf (rich text box format) to the datagridview text box column
>
>for example this is the rtf format column i want to access it in Datagrid view as plain text
> {\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fswiss\fprq2 Verdana;}{\f3\fswiss Verdana;}{\f4\fswiss Verdana;}{\f5\fswiss\fprq2 System;}}
>Thanks in advance

Do you really want plain text? You can use the RichTextBox in a DataGridView column. See:
http://www.codeproject.com/KB/grid/RtfInDataGridView.aspx

If you do want plain text you can use an instance of the RichTextBox to do the conversion:
System.Windows.Forms.RichTextBox rtb = new System.Windows.Forms.RichTextBox();
rtb.Rtf =  (the RTF string)
string plainText = rtb.Text;
HTH,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform