Click here to Skip to main content
15,915,733 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi,

how can i freeze the last column of the gridview in which i hv implemented scrollbar also and i hv freezed some of the initial columns.

Thanks
Akash
Posted

The Gridview columns is already 'freezed' when you dont have any clickable controls added to it. But if you have added any clickable control to the gridview column , then you need to 'freeze' ( ?? !!) or disable the control(s) in the column in the row_databound event of the grid..
 
Share this answer
 
Comments
yAkashy 19-Mar-12 5:27am    
since i hv implemented the scroll in the grid except some initial columns which i hv freezed rest of the columns can be scrolled, but i want the last column also to be freezed and other columns b/w then can b scrolled.
Freezing a grid view column can be done by using the css.

Please refer the below link that shows with example to freeze a column.

http://www.vbknowledgebase.com/?Id=91&Desc=Freeze-GridView-Columns-and-Headers-in-ASP.Net-CSS[^]

In your case you can implement it to freeze the last column.
 
Share this answer
 
Comments
yAkashy 19-Mar-12 7:35am    
I have already tried this, but this dosen't solves my problem, as i require the scrollbar where first and last columns are fixed.
This can freeze the column but the last column is getting out of the grid.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900