.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Gridview Designing

Posted By: jokertin92     Posted Date: July 26, 2011    Points:5   Category :ASP.Net
Hi pals,
Give me your ideas for my below problem:
I've designed a gridview which is working in Firefox as I expected. But not working in IE (But it was working fine in IE too. I don't what I missed). Please check my code and give me your suggessions.

Thanks

<asp:gridview id="gvSearch" runat="server" cellpadding="4" datakeynames="ID" forecolor="#333333"
gridlines="None" autogeneratecolumns="False"
allowpaging="True" onpageindexchanging="gvSearch_PageIndexChanging"
pagesize="30" Font-Size="10px" Width="95%" HorizontalAlign="Right"
BorderColor="Silver" BorderStyle="Solid" BorderWidth="1px">
<rowstyle backcolor="#EFF3FB" forecolor="#333333" verticalalign="Top" />
<columns>
<asp:TemplateField HeaderText="MFG Code">
<ItemTemplate>
<asp:Label ID="lblMfgCode" runat="server" Text='<%# Bind("manufacturerID") %>'></asp:Label>
<table cellpadding="0" border="0" cellspacing="0" style="font-size: 10px">
<tr>
<td align="center"><a class="SmallTitle" href="javascript:void(0);" id="morelink" onclick="Toggle('<%#Eval("ID")%>rowMoreInfo',this)">More</a></td>
</tr>
<tr id="<%#Eval("ID")%>rowMoreInfo" style="display:none">
<td>
<table width="153%" class="list" cellpadding = "0" cellspacing="0" style="font-size: 10px; border:1px solid black;">
<tr>
<td width="100" align="right">VendorItemNumber:</td>
<td width="80" align="left"><asp:Label ID="lblVendorItemNumber" runat="server" Text='<%# Bind("VendorItemNumber") %>'></asp:Label></td>
<td width="120" align="right">Vendor UOM:</td>
<td width="80" align="left" ><asp:Label ID="lblVendorUOM" runat="server" Text='<%# Bind("VendorUOM") %>'></asp:Label></td>
<td width="100" align="right">Item UOM: </td>
<td width="80" align="left"><asp:Label ID="Label1" runat="server" Text='<%# Bind("ItemUOM") %>'></asp:Label></td>
<td width="100" align="right">Category: </td>
<td width="130" align="left"><asp:Label ID="Label2" runat="server" Text='<%# Bind("Category") %>'></asp:Label></td>
<td width="100" align="right">Assessories: </td>
<td width="80" align="left"><asp:Label ID="Label11" runat="server" Text='<%# Bind("Accessories") %>'></asp:Label></td>
</tr>
<tr>
<td width="100" align="right">Alternate Number: </td>
<td width="80" align="left"><asp:Label ID="lblAlternateNumber" runat="server" Text='<%# Bind("AlternateNumber") %>'></asp:Label></td>
<td width="100" align="right">Weight: </td>
<td width="80" align="left"><asp:Label ID="lblWeight" runat="server" Text='<%# Bind("Weight") %>'></asp:Label></td>
<td width="100" align="right">Cost Method: </td>
<td width="80" align="left"><asp:Label ID="Label3" runat="server" Text='<%# Bind("CostMethod") %>'></asp:Label></td>
<td width="100" align="right">Mandatory Main: </td>
<td width="130" align="left"><asp:Label ID="Label4" runat="server" Text='<%# Bind("MandatoryMain") %>'></asp:Label></td>
<td width="100" align="right">Part Status: </td>
<td width="80" align="left"><asp:Label ID="lblPartStatus" runat="server" Text='<%# Bind("PartsStatus") %>'></asp:Label></td>
</tr>
<tr>
<td width="100" align="right">Mandatory Truck: </td>
<td width="80" align="left"><asp:Label ID="lblMandatoryTruck" runat="server" Text='<%# Bind("MandatoryTruck") %>'></asp:Label></td>
<td align="right">Critical Item: </td>
<td width="80" align="left"><asp:Label ID="lblCriticalItem" runat="server" Text='<%# Bind("CriticalItem") %>'></asp:Label></td>
<td align="right">Discount Code: </td>
<td align="left"><asp:Label ID="Label5" runat="server" Text='<%# Bind("DiscountCode") %>'></asp:Label></td>
<td align="right">Notes: </td>
<td width="130" align="left"><asp:Label ID="Label6" runat="server" Text='<%# Bind("Notes") %>'></asp:Label></td>
<td align="right">Change Date: </td>
<td align="left"><asp:Label ID="Label7" runat="server" Text='<%# Bind("ChangeDate") %>'></asp:Label></td>
</tr>
<tr>
<td align="right">SISID: </td>
<td align="left"><asp:Label ID="lblSISID" runat="server" Text='<%# Bind("SISID") %>'></asp:Label></td>
<td width="140" align="right">Current Alternate Item: </td>
<td width="80" align="left"><asp:Label ID="lblCurrentAlternateItem" runat="server" Text='<%# Bind("CurrentAlternateItem") %>'></asp:Label></td>
<td align="right">Reference: </td>
<td align="left"><asp:Label ID="Label9" runat="server" Text='<%# Bind("Reference") %>'></asp:Label></td>
<td></td>
<td></td>
<td align="right">Effective Date: </td>
<td align="left"><asp:Label ID="Label10" runat="server" Text='<%# Bind("EffectiveDate") %>'></asp:Label></td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>

<asp:TemplateField HeaderText="Part Number">
<ItemTemplate>
<asp:Label ID="lblPartNumber" runat="server" Text='<%# Bind("OEM") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Description">
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center"/>
</asp:TemplateField>

<asp:TemplateField HeaderText="Price" HeaderStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="lblPrice" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Cost" HeaderStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="lblCost" runat="server" Text='<%# Bind("Cost") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Right" />
</asp:TemplateField>
<asp:TemplateField HeaderText="Effective Date">
<ItemTemplate>
<asp:Label ID="lblEffectiveDate" runat="server" Text='<%#Bind("EffectiveDate") %>'></asp:Label>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" />
</asp:TemplateField>

</columns>
<footerstyle backcolor="#5D7B9D" font-bold="True" forecolor="White" />
<pagerstyle backcolor="#507CD1" forecolor="White" horizontalalign="Center" />
<selectedrowstyle backcolor="#E2DED6" font-bold="True" forecolor="#333333" />
<headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
<editrowstyle backcolor="#F7F1D6" />
<alternatingrowstyle backcolor="White" forecolor="#284775" />
</asp:gridview>

Responses
Author: Karthikeyan Anbarasan       [Moderator]      
Posted Date: July 27, 2011     Points: 20   

Hi,

What type of error or issue you facing????

Thanks
Karthik
http://www.f5debug.net
Mark as Answer if the answer solves your issue!!!
Author: Sasi Prabhu             
Posted Date: July 29, 2011     Points: 20   


Post The Error Type And Its Details.

Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju             
Posted Date: July 29, 2011     Points: 20   

the approach given is correct

keep look at these reference as


http://forums.asp.net/t/1652061.aspx

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: jokertin92             
Posted Date: July 30, 2011     Points: 20   

I don't any error. The design is looking same in IE and Firefox. It works fin in FireFox. But not in IE. Please refer the attachement.

Download Attachment



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend