|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
line break in a datagridhello to all,
how to get an line break from a database to the datagrid? thanks, hannes hannes wrote:
> hello to all, You didn't say in which language. I'm using VB.NET here.> > how to get an line break from a database to the datagrid? > > thanks, > hannes Turn AutoGenerateColumns off. Add BoundColumns instead. For the column that has line breaks, convert the BoundColumn to a TemplateColumn. In the TemplateColumn replace <%# DataBinder.Eval(Container.DataItem,"myField") %> with <%# DataBinder.Eval(Container.DataItem,"myField").ToString().Replace("vbCRLF","<br>") %> -- Riki
5th Re-Post with NO RESPONSE FROM MS!
Can't get a reference to user control in datagrid How to capture CheckChanged event from Radiobutton in Datagrid? Problem with Top And Bottom Paging radiobutton and datagrid DataGrid sort when Editing search function on different page selected Handling events for Checkbox in Data Grid How to put the result of 2 DataReader in a DataList?? e.item.dataitem |
|||||||||||||||||||||||