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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

browser compatibility problem with datagrid with fixed header using CSS way

Posted By:      Posted Date: October 27, 2010    Points: 0   Category :ASP.Net

Hi Everybody,

I am trying to create a datagrid with fixed header and I was using the CSS way to implement this using:


However, this only works in IE and not in FF. The other alternative that I found was to create the header in a separate table and to use scrollbars on the datagrid. But, I want to stick to the first option and want to make it work on both browsers. The problem is I don't know how. Any inputs on this is greatly appriciated.


View Complete Post

More Related Resource Links

How to Fixed GridViews Header and Footer when scrolling in asp.net?

This article is to show you how to Fix GridView''s Header and Footer in a simple code with CSS and JavaScript

WebDev.WebServer.exe has encounted a problem and needs to close when trying to view page in browser


Hi, whenever I load an aspx page in vwde2008, I get the message in the subject of this post.  After I click Ok on that, I get a dialog box, Unable to Connect to the ASP.Net development center.  What can I do to troubleshoot?

I am using Windows XP SP3, vwde2008 with SP1, on a HP desktop.  Also using Office 2003 if that is relevant at all.

Thanks, Justin

I like to clear the IE browser Pagesetup--> Header and footer using 1.1 Dotnet framework


Hai all,

I like to clear the IE Pagesetup--> header and footer using Asp.net 1.1 , I have tried in 2.0 Dotnet it works fine it is not working in 1.1 and its urgent too

this is the code i tried ...........

 public void IESetupFooter()
        string strKey = "Software\\Microsoft\\Internet Explorer\\PageSetup";
        bool bolWritable = true;
        string strName = "footer";

problem in css for Mozilla browser



I am displaying data in crystal report and I want to data to be displayed in vertical format. I am getting the proper alignment in all the bowsers ie. IE,chrome and safari. But having the problem with Mozilla.

The problem is with text alignment with any symbol eg. (% of hours), I want to display it in a single vertical line. But when a symbol is encountered (here it is %), it is displaying that in the next line.

Can anyone help me on this ? Its urgent.

Please find my CSS below.

    font-family:Arial,Verdana, Geneva, Helvetica, sans-serif;
    font-size: 10px;  
    -moz-transform: rotate(-45deg);
    -moz-transform-origin: 70px 55px;




header and footer problem


Hiii Coders,

I have made all the pages of my wesite centered aligned using the following code in masterpage:

<body background="Images/bg2.gif">
    <form id="form1" runat="server">
    <table style="width:960px; margin-left:auto; margin-right:auto; background-color:White;">
my content

No doubt, it works fine ut still it shows body background from top and bottom. I don't want to show it from top and bottom. Means that website should be centered align from left and right sides only whereas should display my form/webpage fron top and bottom.

plz helpand provide some code snippet

thanx and regards 

body tag's header and footer problem

Hiii Coders, I have made all the pages of my wesite centered aligned using the following code in masterpage:<body background="Images/bg2.gif"> <form id="form1" runat="server"> <table style="width:960px; margin-left:auto; margin-right:auto; background-color:White;"> my content </table> No doubt, it works fine ut still it shows body background from top and bottom. I don't want to show it from top and bottom. Means that website should be centered align from left and right sides only whereas should display my form/webpage fron top and bottom. plz helpand provide some code snippet thanx and regards 

Editable Header for DataGrid

Hi I want to have  wpf datagrid header   editable.   How can i add textblock or input field in datagrid header  

Compatibility problem: an "sql server 2008 R2" db backup cannot be restored to an "sql server 2008"

To verify if the "2008 R2" version can be restored back to a "2008" dbserver I make an experiment:  construct a database on R2 version ( version : 10.50.xxx )  and backup it; then I try to restore the db backup to a "sql server 2008" db-server ( version : 10.0.xxx ) but get failed. Error message is as shown: The database was backed up on a server running version 10.50.1600. That version is incompatible with this server, which is running version 10.00.2531. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server.   Originally I want to upgrade a "2008" server to "2008 r2" , but this problem withdraws me: if I do so , I am afraid all the existing clientuser's dbs cannot be backed up to themselves if they don't have "2008 r2" locally:   if a database is backed up under "2008 r2" environment whereas client user only has "2008" db server, does it mean he cannot restore it anymore?   So I wonder if there is an approach that helps me to create a "backward-compatible" database; when creating database on wizard there is an option to choose "compatibility level" but I don't think it meets my requirement..    Anyone can help me on this ??    

CSS Layout Problem when height is fixed to 100%

Hi all,I'm using 3 column DIV layouts for my aspx page which i downloaded it from james tyler website.My problem is when i set height of all the div layers to some 750px it is looking good and when i remove the height, all the DIV layers are getting shortened and looking awakward.I mean if the left menu DIV contains only 3 items, the whole div's height is being reduced to fit those only 3 menu items. I need to maintain 100% height for all DIV layers and my DOCTYPE is XHTML1.0 STRICT. Can anyone please help me out as i'm stuck here.. Here is my CSS and Markup:/* Header styles */ #header { clear:both; float:left; width:100%; } #header { border-bottom:1px solid #57B6DD; } #header p, #header h1, #header h2 { padding:.4em 15px 0 15px; margin:0; } #header ul { clear:left; float:left; width:100%; list-style:none; margin:10px 0 0 0; padding:0; } #header ul li { display:inline; list-style:none; margin:0; padding:0; } #header ul li a { display:block; float:left; margin:0 0 0 1px; padding:3px 10px; text-align:center; background:#eee; color:#000; text-decoration:none; position:relative; left:15px; line-height:1.3em; } #header ul li a:hover { background:#369; color:#fff; } #header ul li a.active, #header ul li a.active:hover { color:#fff; background:#000; font-weight:bold; } #header ul li a span { display:block; } /* 'widths' sub menu */

How to scroll the DataGrid (horizontally) when user drags a column header far left or right?

We're working with the WPF DataGrid and I have a question about  dragging column headers: The grid lets the user rearrange the columns, by dragging the column header left or right.  So far, so good. But, sometimes we have many columns, and only the first few columns are visible; so there is a horizontal scrollbar.  In such case, if the user drags a column header to the right edge of the DataGrid window, I want the DataGrid to scroll, automatically, one column at a time.  Is there an easy way to do that? (To be clear: yes, the user can already scroll horizontally by interacting with the horizontal scrollbar, but that isn't what I'm asking about.  I'm asking if the "drag a column header left or right" gesture can cause the DataGrid to scroll left or right.) I guess I could handle various low-level events, but it seems like it shouldn't be necessary -- DataGrid has so much functionality built-in, that I'm guessing it already has the ability to scroll when the user drags the column header to the edge.  So, is there either (a) a property that I can set, to tell the DataGrid to scroll when the user drags a column header to the edge of the window;  or (b) a code example showing how to achieve this effect myself?  Thanks!

Problem with ASP.NET Ajax, Framework version 4.0 and the SeaMonkey browser...

I have a site that I'm upgrading to the 4.0 framework and I've come across an issue with asp.net ajax and the SeaMonkey browser. It seems like the script manager is not registering the scripts on the page in seamonkey (but it works fine in IE, Firefox, Chrome, Opera, and Safari). Now, if I change the user agent string in SeaMonkey to use the user agent string from any of those other browsers, it works fine. So I guess my question is does ASP.NET Ajax check the browser's user agent to determine what scripts to register and, if so, is it possible that SeaMonkey is not included in the list in the 4.0 framework (I should add that it's working fine in the 3.5 framework so it seems to me like this is a difference between the two framework versions).

problem with datagrid

I am trying to create datagrids dynamically using Datagrid Array.But I am getting exception while setting Datasource.  Do anybody have the solution for this? Code  using(SqlDataAdapter da =new SqlDataAdapter(cmd1))      {       DataSet ds =new DataSet();       da.Fill(ds);              for(int i=ds.Tables.Count;i >=1;i--)       {        int j=ds.Tables.Count;        DataGrid[] dgd=new DataGrid[i];        DataGrid DataGrid[i]= new DataGrid();        DataView dv1=new DataView(ds.Tables[i-1]);        dgd[i].DataSource=dv1;//    Exception        dgd[i].DataBind();        plh1.Controls.Add(dgd[i]);       }      } 

problem of compatibility of dll

Hi guys! I'm doing a c# project where i need to access the terminal service profile path and the home directory of active directory. i saw that i needed the tsuserex.dll and the tsuserex.dll.mui i need to do regsvr32 tsuserex.dll i have an error message : the module "tsuserex.dll" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64 bit) version of regsvr32.exe. I did'nt saw any tsuserex.dll for 32 bits or the one that I've downloaded was invalid... For you information, I'm currently running on windows 7 32 bits. If you need more information don't hesitate to ask :) Thanks

Is this problem of browser(IE7)

0 down vote favorite This is the dynamic example jsFiddle dynamic DEMO CLICK ME and This is static example jsFiddle static DEMO CLICK ME When I load markup dynamically into div it is not working in IE7. But if it is static it works fine. Yesterday I was unable to state my problem clearly so I made this fiddle. Please check it out and reply.

DataGrid cells ImageUrl properties problem

At the outset i would like to welcome all as this is my first post on this forum :) probably i've got a simple problem for most of you, namly:   I want to dynamically replace ImageUrl into DadaGrid cell. I've already prepare a right type of field (Image Field) and this is my code:   Private Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then If e.Row.Cells(3).Text = "1" Then e.Row.Cells(3).Text = "Online" DirectCast(e.Row.Cells(4).Controls(0), Image).ImageUrl = "~/Css/green.png" 'e.Row.Cells(9).ForeColor = System.Drawing.ColorTranslator.FromHtml("#489A38") 'e.Row.ForeColor = System.Drawing.Color.LightGray Else e.Row.Cells(3).Text = "Offline" DirectCast(e.Row.Cells(4).Controls(1), Image).ImageUrl = "~/Css/red.png" End If End If End Sub And i.ve got this error: Specified argument was out of the range of valid values.Parameter name: index Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and whe

System.Net.Mail e-mail header info problem

I'm new to using the system.net.mail class and I'm having trouble with a small program I'm writing.  I use my SendMessage() to send an email public static void SendMessage(string msg)         {             System.IO.File.Copy(mySource + msg, destSource + msg);             MailMessage mail = new MailMessage("from@me.com", "to@you.com, msg, "");                        Attachment attch = new Attachment(destSource + msg, "text/plain; format=flowed;reply-type=original"); //content-type text/plain                                   mail.Attachments.Add(attch);                                  MessagingCenter.client.Send(mail);             mail.Dispose();         } However, the email sent

Need help to solve header selection problem in accordion

Hello  friends I have created Accordion control from database. so basically in the header section I have bind categories and in the panel Bind subcategories. basically now it's working fine. but the important thing what i have to do is if i selected a category on that time it's showing me subcategory in the accordion. but at the same time i have to show subcategory  on another page.As well as i have to keep selected header true. Now not getting how to show subcategory on another page and as well as how to keep selected header true.Please HElp me solve this issue.Thanks And RegardsOmkar.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

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