Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET DataGrid
Hi
I want to fix(freeze) the column of a datagrid in my asp.net application while horizontal scrolling.
Can Any one came through this situation...plz post any Ideas...cross browser solution is required
Any help highly appreciated....
Thank you in Advance
Posted 9-Nov-10 23:54pm
Edited 19-Dec-10 20:34pm
v28
Comments
jim lahey at 10-Nov-10 4:55am
   
by fix it, do you mean width?
rajas4444 at 10-Nov-10 7:26am
   
Not width,Freezing the column not allowed to scroll that column
Ankur\m/ at 10-Nov-10 23:17pm
   
Thanks for the vote. I must tell you that there is nothing .NET specific that will create a cross-browser compatible solution for you. It's the styles of your controls that would behave browser specific. So you need to check what style is not working for Firefox and change it accordingly.
thatraja at 11-Nov-10 0:21am
   
Hi, check my updated answer for your issue.
rajas4444 at 16-Nov-10 23:00pm
   
can anyone help me
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You may be looking for this: The Freeze Pane DataGrid[^]
 
You may also find your answer here: Google search - freeze first column datagrid[^]
  Permalink  
Comments
Hiren Solanki at 10-Nov-10 8:48am
   
reply to comment on thatraja's answer.
 
But he has also specified tag as ASP.NET
rajas4444 at 10-Nov-10 23:37pm
   
Hi refer this article to fix header
http://www.codeproject.com/KB/webforms/ScrollingGrid.aspx?fid=215863&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=1#xx0xx
I need freezing column here.Is it possible...
Ankur\m/ at 10-Nov-10 23:42pm
   
Yes. The link I have given you is about freezing COLUMNS. Have you checked the links?
rajas4444 at 11-Nov-10 0:08am
   
Hi,the link u send is good for IE but I need Cross browser solution...So I think u understand...thankyou for ur Support.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

check below link for gridview column and header fix.
Fix Header and Column of GridView
  Permalink  
Comments
rajas4444 at 17-Nov-10 8:23am
   
thanks for ur reply....it works for IE only....
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Have a look at this article. It's working in 3 browsers(IE, FF, Chrome)
 
Grid View with fixed header[^]
 
For freezing columns
 
An ASP.NET DataGrid Custom Control to Freeze Header, Rows, Columns just by changing a single attribute value[^]
 
ScrollingGrid: A cross-browser freeze-header two-way scrolling DataGrid[^]
 
Also Ankur already gave you another link.
 
But you need to do changes in CSS, so follow the below link it has the solution.
 
GridView : Freezing First Columns and Freezing Column's Headers[^]
  Permalink  
v4
Comments
Ankur\m/ at 10-Nov-10 8:46am
   
The OP is asking about a datagrid. And I have given a link for the same.
But anyways there will be not much difference. It's the styles that will fix the column.
Ankur\m/ at 10-Nov-10 8:51am
   
And I have not voted you down. Some 1 voter is after all of us. :(
thatraja at 10-Nov-10 9:23am
   
You right, but datagrid is old one & also there will not much difference between datagrid & gridview like as you said. So that he can change the things easily. Don't worry about down-votes(You can see my signature).
rajas4444 at 10-Nov-10 23:16pm
   
Hi,thanks for ur reply...I already solved the Header freezing problem.Now the requirement is freezing one column in the datagrid.
rajas4444 at 10-Nov-10 23:38pm
   
Hi I refer this article to fix header
http://www.codeproject.com/KB/webforms/ScrollingGrid.aspx?fid=215863&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=1#xx0xx
I need freezing column here.Is it possible...
rajas4444 at 11-Nov-10 3:48am
   
hi,I already tried those....those r all for IE only not work in FF,Crome....
I used that scrollingGrid article for my datagrid.Here I need Freeze column..Thankyou
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

THIS[^] domestic article may help you.
  Permalink  
Comments
Ankur\m/ at 10-Nov-10 8:50am
   
Yes, so?? Do you mean there is no datagrid in ASP.NET?
rajas4444 at 10-Nov-10 23:16pm
   
Hi,thanks for ur reply...I already solved the Header freezing problem.Now the requirement is freezing one column in the datagrid.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 20 Dec 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100