I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate
<br/into "<br/> , so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks. 6 1985
try to set HtmlEncode="false" on your column (and use <br/>)
"LamSoft" wrote:
I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate
<br/into "<br/, so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks.
Thank you very much.
"Sergey Poberezovskiy" <Se*****************@discussions.microsoft.comwrot e
in message news:7E**********************************@microsof t.com...
try to set HtmlEncode="false" on your column (and use <br/>)
"LamSoft" wrote:
>I have a cell in the datagrid, which the original data is as following:
Testing1 Testing2 Testing3 Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate <br/into "<br/, so the <br/is useless here.... How can I do if the data is more than 1 line? Thanks.
Sorry, 1 more thing
How can I set HTMLEncode=false in the coding
GridView.Columns[1].HTMLEncode = false
but i cannot find any attributes about HTMLEncode under GridView.Columns
Thanks.
"Sergey Poberezovskiy" <Se*****************@discussions.microsoft.comwrot e
in message news:7E**********************************@microsof t.com...
try to set HtmlEncode="false" on your column (and use <br/>)
"LamSoft" wrote:
>I have a cell in the datagrid, which the original data is as following:
Testing1 Testing2 Testing3 Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate <br/into "<br/, so the <br/is useless here.... How can I do if the data is more than 1 line? Thanks.
HtmlEncode is a BoundField property - so any column that inherits from will
support this attribute, but not the Columns collection
"LamSoft" wrote:
Sorry, 1 more thing
How can I set HTMLEncode=false in the coding
GridView.Columns[1].HTMLEncode = false
but i cannot find any attributes about HTMLEncode under GridView.Columns
Thanks.
"Sergey Poberezovskiy" <Se*****************@discussions.microsoft.comwrot e
in message news:7E**********************************@microsof t.com...
try to set HtmlEncode="false" on your column (and use <br/>)
"LamSoft" wrote:
I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line,
and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to
translate
<br/into "<br/, so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks.
OH...
Thank you very much.
"Sergey Poberezovskiy" <Se*****************@discussions.microsoft.comwrot e
in message news:7E**********************************@microsof t.com...
HtmlEncode is a BoundField property - so any column that inherits from
will
support this attribute, but not the Columns collection
"LamSoft" wrote:
>Sorry, 1 more thing
How can I set HTMLEncode=false in the coding
GridView.Columns[1].HTMLEncode = false
but i cannot find any attributes about HTMLEncode under GridView.Columns
Thanks. "Sergey Poberezovskiy" <Se*****************@discussions.microsoft.com> wrote in message news:7E**********************************@microsof t.com...
try to set HtmlEncode="false" on your column (and use <br/>)
"LamSoft" wrote:
I have a cell in the datagrid, which the original data is as following:
Testing1 Testing2 Testing3 Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate <br/into "<br/, so the <br/is useless here.... How can I do if the data is more than 1 line? Thanks.
On Jul 11, 8:19 am, "LamSoft" <[nospam]lams...@lamsoft.netwrote:
I have a cell in the datagrid, which the original data is as following:
Testing1
Testing2
Testing3
Testing4
There are 4 lines, while it displays on the browser, it shows as a line, and
I tried to replace "\r\n" to <br/>, but the smart ASP helps me to translate
<br/into "<br/> , so the <br/is useless here.... How can I do
if the data is more than 1 line? Thanks.
Hi
did you tried replacing \r\n with environment.newline....?
Md. Masudur Rahman ( Munna )
Kaz Software Ltd. http://www.kaz.com.bd http://munnacs.110mb.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Stephen |
last post by:
I'm trying to work with a datagrid column in order to display a tooltip in a
datagrid cell. The reason I am doing this is because I have some long strings
being returned and I don't want the rows...
|
by: Charles Astwood |
last post by:
Hi, just starting out working my way round C Sharp and aspx.
Used to write all my sites in asp and just need a few pointers in how to
display data.
I have made a connection to my SQL2000...
|
by: vinayak |
last post by:
Hi
I am displaying data in Datagrid in ASP.NET with
Edit/Update functionality for each row. On the same page I
have 2 Button controls which submits the request to
server. These button controls...
|
by: Tim T |
last post by:
Hi,
I have a stored procedure executing a search and an asp.net page displaying
the results in a datagrid. The datagrid has paging on it, I am using Visual
Studio.NET and can't see any option...
|
by: John |
last post by:
Hi
What is the best way to populate a datagrid?, can you populate it row by row using a datareader or is dataAdapater.Fill then Dataset binding the only way
John
|
by: Patrick.O.Ige |
last post by:
Hello guys i made a Datagrid with Editing,Update and Cancel using VS.NET. to
my surprise nothing is on the screen after compilation ..
By code below:-
Imports System.Data
Imports...
|
by: Fedor G via DotNetMonster.com |
last post by:
Pls help me manage the data displaying on the webform aspx c# page.
I used Dreamweaver to manage data displaying in the repeat table, ie simply
dragged the fields to the table cells, where I need...
|
by: Olaf Rabbachin |
last post by:
Hi folks,
I'd like to notify the user that rows within a datagrid require
user-interaction/processing.
The RowHeader is visible and wide enough so that the exclamation-mark icon
as i.e. the...
|
by: Niclas |
last post by:
Hi,
I have a multiline textbox used to submit values stored as VarChar in my SQL
database. I need to be able to retrieve this string and display it in a
datagrid column with the line breaks...
|
by: Death |
last post by:
Hi all
I am having some trouble on displaying datagrid data from my database
as i am a beginner for this
The error is when calling the DBCommand . It show incorrect syntax near
User. But User...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |