----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Clouds Message 5 in Discussion Make sure in the datagrid properties you disable the checkbox "Autogenerate columns" That could be the reason you are getting two columns :) Regards Badal -----Original Message----- From: BDOTNET [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 5:01 PM To: BDOTNET Subject: Datagrid problem! New Message on BDOTNET Datagrid problem! Reply Recommend Message 1 in Discussion From: wan2bhappyagn The columns in my datagrid are repeating. Dunno why! <form id="WebForm2" method="post" runat="server"> <asp:DataGrid id=DataGrid1 runat="server" DataSource="<%# dataView1 %>" DataKeyField="CustomerID" DataMember="Customers" EnableViewState="False" BorderColor="black" BorderWidth="1" GridLines="Both" CellPadding="3" CellSpacing="0" Font-Name="Verdana" Font-Size="8pt" HeaderStyle-BackColor="#aaaadd"> <Columns> <asp:BoundColumn DataField="CustomerID" HeaderText="CustomerID"></asp:BoundColumn> <asp:BoundColumn DataField="CompanyName" HeaderText="CompanyName"></asp:BoundColumn> <asp:BoundColumn DataField="ContactName" HeaderText="ContactName"></asp:BoundColumn> <asp:BoundColumn DataField="ContactTitle" HeaderText="ContactTitle"></asp:BoundColumn> <asp:BoundColumn DataField="Address" HeaderText="Address"></asp:BoundColumn> <asp:BoundColumn DataField="City" HeaderText="City"></asp:BoundColumn> <asp:BoundColumn DataField="Region" HeaderText="Region"></asp:BoundColumn> <asp:BoundColumn DataField="PostalCode" HeaderText="PostalCode"></asp:BoundColumn> <asp:BoundColumn DataField="Country" HeaderText="Country"></asp:BoundColumn> <asp:BoundColumn DataField="Phone" HeaderText="Phone"></asp:BoundColumn> <asp:BoundColumn DataField="Fax" HeaderText="Fax"></asp:BoundColumn> </Columns> </asp:DataGrid> </form> But all these columns are repeated twice when i see in the Design window and also when in the browser. Any idea? please help!! View other groups in this category. DISCLAIMER: This message (including attachment if any) is confidential and may be privileged. Before opening attachments please check them for viruses and defects. MindTree Consulting Private Limited (MindTree) will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
