Solved

Freeze first column of datagrid

Posted on 2004-10-13
8
1,059 Views
Last Modified: 2008-01-09
Is there a way that I could freeze the first column of my datagrid and navigate to the remaining columns with a horizontal scrollbar (similar to the freeze pane feature in Excel)?

Thanks in advance.
0
Comment
Question by:Marjorin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 10

Assisted Solution

by:jnhorst
jnhorst earned 50 total points
ID: 12305165
Infragistics sells a suite of ASP.NET controls, including a grid that will allow you to do just that.

http://www.infragistics.com

John
0
 
LVL 28

Accepted Solution

by:
mmarinov earned 100 total points
ID: 12305333
Hi Marjorin,

i suggest you these steps:
1. create a table with one row and 2 tablecells
2. create 2 datagrids - the first one contains only the first column of what you want, the 2 all other columns without the first one
3. for the 2 datagrid follow the example: http://www.dotnetspider.com/Technology/KBPages/828.aspx


Regards!
B..M
0
 
LVL 9

Assisted Solution

by:msdixon
msdixon earned 50 total points
ID: 12308609
the infragistics grid won't do that. i even asked them. it will freeze the column headings, but not the first column.
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 28

Expert Comment

by:mmarinov
ID: 12441520
Hi  Marjorin , can you explain the C Grade?
Please read : http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP.NET/help.jsp#hi73

B..M
0
 

Author Comment

by:Marjorin
ID: 12479732
I didn't think that grade really matters so I just picked 'Good' and for that I'm terribly sorry. The reason behind that decision is that there is no answer to my question since it is a limitation of the datagrid. I really would like to have some work-arounds, something like on ItemDataBound, include the first column in a frame and the rest on the other frame, span or div tags giving the output of cell freezing. Don't get me wrong but I already thought of your presented work-around before posting this question and it will be a major revision on my part if I were to do that. Even if I'm not fully satisfied with the answers, I awarded the points in exchange for the efforts you all provided and since you were the one whom I think really did a lot of thinking than the rest, I accepted your solution. Again sorry, but if there is a way to change the grade, I will do it.
0
 

Author Comment

by:Marjorin
ID: 12488893
Could I request a change in this topic's grade from 'C' to 'B' for what the accepted answer provided is an acceptable solution. I didn't have ample time to read the grading system so I just picked 'Good' instead of I think 'Average' and 'Excellent' out of the blue. I am just a newbie and had posted 2 questions including this so hope you could understand me. Again, my apologies to mmarinov. Thanks and sorry for the trouble I cause you.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
No Data for DropDown List 2 32
Finding the IIS version 5 38
Blending HTML output from R Studio into a ASP.Net/C# project 4 23
c#, datatable, aspx 4 25
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question