Click here to Skip to main content
15,888,802 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: plz help me, i am new to web designing with asp.net and C# Pin
Christian Graus6-Feb-09 18:10
protectorChristian Graus6-Feb-09 18:10 
AnswerRe: plz help me, i am new to web designing with asp.net and C# Pin
MacSpudster9-Feb-09 9:27
professionalMacSpudster9-Feb-09 9:27 
QuestionAsp.net Gridview header [modified] Pin
SreejithKumar M6-Feb-09 18:04
SreejithKumar M6-Feb-09 18:04 
AnswerRe: Asp.net Gridview header Pin
Christian Graus6-Feb-09 18:15
protectorChristian Graus6-Feb-09 18:15 
GeneralRe: Asp.net Gridview header Pin
SreejithKumar M6-Feb-09 18:22
SreejithKumar M6-Feb-09 18:22 
GeneralRe: Asp.net Gridview header Pin
Christian Graus6-Feb-09 18:37
protectorChristian Graus6-Feb-09 18:37 
GeneralRe: Asp.net Gridview header Pin
SreejithKumar M6-Feb-09 18:51
SreejithKumar M6-Feb-09 18:51 
GeneralRe: Asp.net Gridview header Pin
SreejithKumar M6-Feb-09 19:39
SreejithKumar M6-Feb-09 19:39 
Hi,
I got answer for this solution

I changed
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

to

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
in design page
Then i used follwing css

/* Div container to wrap the datagrid */
div#div-datagrid {
width: 420px;
height: 200px;
overflow: auto;
scrollbar-base-color:#ffeaff;
}

/* Locks the left column */
td.locked, th.locked {
font-size: 14px;
font-weight: bold;
text-align: center;
background-color: navy;
color: white;
border-right: 1px solid silver;
position:relative;
cursor: default;
left: expression(document.getElementById("div-datagrid").scrollLeft-2); /*IE5+ only*/
}

/* Locks table header */
th {
font-size: 14px;
font-weight: bold;
text-align: center;
background-color: navy;
color: white;
border-right: 1px solid silver;
position:relative;
cursor: default;
top: expression(document.getElementById("div-datagrid").scrollTop-2); /*IE5+ only*/
z-index: 10;
}

/* Keeps the header as the top most item. Important for top left item*/
th.locked {z-index: 99;}

/* DataGrid Item and AlternatingItem Style*/
.GridRow {font-size: 10pt; color: black; font-family: Arial; background-color:#ffffff; height:35px;}
.GridAltRow {font-size: 10pt; color: black; font-family: Arial; background-color:#eeeeee; height:35px;}


my aspx page is

<div id="div-datagrid">
<asp:GridView ID="gv5" Width="100%" runat="server" BorderStyle="Solid"
BorderColor="Navy" meta:resourcekey="gv5Resource1" UseAccessibleHeader="True">
<HeaderStyle BorderColor="Black" ForeColor="Black" BackColor="LightSkyBlue"
/>

<AlternatingRowStyle BackColor="Transparent" />


</asp:GridView>
</div>
like this
AnswerRe: Asp.net Gridview header Pin
varma suresh6-Feb-09 19:46
varma suresh6-Feb-09 19:46 
Question'Response.Headers' threw an exception of type 'System.PlatformNotSupportedException' Pin
Anita_Kamat_inds6-Feb-09 14:33
Anita_Kamat_inds6-Feb-09 14:33 
AnswerRe: 'Response.Headers' threw an exception of type 'System.PlatformNotSupportedException' Pin
Christian Graus6-Feb-09 15:34
protectorChristian Graus6-Feb-09 15:34 
GeneralRe: 'Response.Headers' threw an exception of type 'System.PlatformNotSupportedException' Pin
Anita_Kamat_inds6-Feb-09 16:45
Anita_Kamat_inds6-Feb-09 16:45 
GeneralRe: 'Response.Headers' threw an exception of type 'System.PlatformNotSupportedException' Pin
Christian Graus6-Feb-09 16:57
protectorChristian Graus6-Feb-09 16:57 
QuestionAJAX Timer not firing Pin
dptalt6-Feb-09 9:07
dptalt6-Feb-09 9:07 
AnswerRe: AJAX Timer not firing Pin
Christian Graus6-Feb-09 9:46
protectorChristian Graus6-Feb-09 9:46 
GeneralRe: AJAX Timer not firing Pin
dptalt6-Feb-09 9:50
dptalt6-Feb-09 9:50 
GeneralRe: AJAX Timer not firing Pin
Christian Graus6-Feb-09 9:52
protectorChristian Graus6-Feb-09 9:52 
GeneralRe: AJAX Timer not firing Pin
dptalt6-Feb-09 9:58
dptalt6-Feb-09 9:58 
GeneralRe: AJAX Timer not firing Pin
Christian Graus6-Feb-09 10:18
protectorChristian Graus6-Feb-09 10:18 
GeneralRe: AJAX Timer not firing Pin
led mike6-Feb-09 10:08
led mike6-Feb-09 10:08 
GeneralRe: AJAX Timer not firing Pin
Christian Graus6-Feb-09 10:18
protectorChristian Graus6-Feb-09 10:18 
GeneralRe: AJAX Timer not firing Pin
Jon Rista6-Feb-09 10:50
Jon Rista6-Feb-09 10:50 
GeneralRe: AJAX Timer not firing Pin
led mike6-Feb-09 11:16
led mike6-Feb-09 11:16 
Questionretrieve data from dynamic aspx form and its controls Pin
scottichrosaviakosmos6-Feb-09 7:40
scottichrosaviakosmos6-Feb-09 7:40 
AnswerRe: retrieve data from dynamic aspx form and its controls Pin
Christian Graus6-Feb-09 9:47
protectorChristian Graus6-Feb-09 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.