[Mono-bugs] [Bug 49016][Nor] New - DataList bug - repeated columns

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Sep 2003 07:31:37 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by yaronsh@mainsoft.com.

http://bugzilla.ximian.com/show_bug.cgi?id=49016

--- shadow/49016	2003-09-29 07:31:37.000000000 -0400
+++ shadow/49016.tmp.1586	2003-09-29 07:31:37.000000000 -0400
@@ -0,0 +1,78 @@
+Bug#: 49016
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: yaronsh@mainsoft.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataList bug - repeated columns
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+Repeated columns are not displayed properly
+
+Steps to reproduce the problem:
+1. Open the attached aspx
+2. Click on the button "Bind"
+
+Actual Results:
+The names appears in one column.
+
+Expected Results:
+The names should appear in two columns.
+
+How often does this happen? 
+Always
+
+Additional Information:
+
+<HTML>
+     <HEAD>
+     <script runat="server" language="C#">
+     private void BtnBind_Click(object sender, EventArgs e)
+     {
+	DataSet ds = new DataSet();
+	ds.ReadXml(Server.MapPath("TestDB.xml"));
+	DataList1.DataSource = ds;
+	DataList1.GridLines = GridLines.Both;
+	DataList1.RepeatDirection = RepeatDirection.Vertical;
+	DataList1.RepeatColumns = 2;
+	DataList1.DataBind();
+     }
+     </script>
+     </HEAD>
+     <body>
+	<form id="Form1" method="post" runat="server">
+		<TABLE id="Table1" cellSpacing="1" cellPadding="1" 
+                       width="300" align="center" border="0">
+		<TR>
+		   <TD align="center" height="1">
+			<asp:DataList id="DataList1" runat="server">
+			<ItemTemplate>
+	<asp:Label>
+									<%
+# DataBinder.Eval(Container.DataItem, "Name") %>
+							
+	</asp:Label>
+							</ItemTemplate>
+						</asp:DataList></TD>
+				</TR>
+				<TR>
+					<TD align="center">
+						<asp:Button id="BtnBind" 
+OnClick="BtnBind_Click" runat="server" Text="Bind"></asp:Button></TD>
+				</TR>
+			</TABLE>
+		</form>
+	</body>
+</HTML>