Click to See Complete Forum and Search --> : DetailsView case


Martinez
March 8th, 2007, 05:10 AM
I`m using DetailsView to display a single row. However, DetailsView adds a dot before every row it displays. Because I`m displaing a single row, this dot looks very bad.

How to disable this dot? I mean, how to get rid of this dot?


Thank you very much in advance for any help

mcmcom
March 8th, 2007, 11:35 AM
detailsView does not contain a dot by design, you must have something in there thats creating that. Either a style or a skin perhaps?

hth,
mcm

Charu0306
March 9th, 2007, 02:27 AM
A dot before every row....heheh...that must be some standard button you used with a "." for the Text property...so check the Edit Columns and see the columns added by default.

Martinez
March 9th, 2007, 05:43 AM
I`m affraid I don`t. Here`s code of this DetailsView:
-----------------------------------------------------------------------------

<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ID"
DataSourceID="ObjectDataSourceDetailView" >
<Fields>
<asp:TemplateField SortExpression="Body">
<ItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Text='<%# Bind("Body") %>' ></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Fields>
</asp:DetailsView>
----------------------------------------------------------------------

Any idea?

Charu0306
March 9th, 2007, 05:49 AM
What does TextBox2 Text property contain? COuld you post a pic of the grid here?

Martinez
March 9th, 2007, 06:18 AM
Sure!
Here`s a screenshot:

http://home.icslab.agh.edu.pl/~martinez/nevol/example.JPG

On the right side you can see that DetailsView with a dot, that is outside the textbox.

Charu0306
March 9th, 2007, 06:54 AM
Are you able to right click on it and see? It could be some language settings thats parsed that way?

Martinez
March 9th, 2007, 07:47 AM
I don`t understand... Could you please said that again more clearly?

Charu0306
March 9th, 2007, 08:09 AM
I don`t understand... Could you please said that again more clearly?


The code you posted, is that the only code you have in your file? Your posting the detailsview code. The Dot could be outside of that.

Martinez
March 9th, 2007, 08:22 AM
There is some code, I can post it, but the DetailsView is placed inside table, and fills the whole cell of the table:

<td valign="top">



<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ID"

DataSourceID="ObjectDataSourceDetailView" Height="50px" >

<Fields>

<asp:TemplateField SortExpression="Body">

<ItemTemplate>

&nbsp;<asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Text='<%# Bind("Body") %>' Height="363px" Width="291px"></asp:TextBox>

</ItemTemplate>

</asp:TemplateField>

</Fields>

</asp:DetailsView>



&nbsp;

</td>