Hi Vikas...

 

I had this problem few days ago...

 

You need to create a style tag. or a css file. for example:

 

<style type="text/css">

    .GridHeaderFixed {

        color:red;

        border: 1px solid black;

        position:relative;

    }        

</style>

 

The style tag MUST have the position:relative.

And then. in GridView tag. add the following internal tag:

 

<HeaderStyle CssClass="GridHeaderFixed" />

 

I just tested it on IE 6 and IE 7.

 

That's it. I hope have helped you!!!

 

Regards,

Rodrigo

 

De: [email protected]
[mailto:[email protected]] Em nome de Vikas K M
Enviada em: quinta-feira, 6 de agosto de 2009 06:13
Assunto: [DotNetDevelopment] Scrollbars in grid view

 

HI,

 

I am trying to achieve scrollbard in grid view. I placed the grid view in
panel. I am getting scroll bars. But I want the header row to be fixed. 

 

how can i achieve this. 

 

Please help

 


 


-- 
Regards,
Vikas

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.392 / Virus Database: 270.13.45/2284 - Release Date: 08/05/09
18:23:00

Reply via email to