Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
After a lot of work i managed to fix(Freeze) my headers in repeater.

Now I Have to get the first 2-3 columns fixed.I have taken help of Google but it isnt really helping.

Can someone please help me.
Something like this but for repeaters:
http://www.massless.org/_tests/grid1/?s=1&r=40&c=40[^]

Thanks.

p.s.This is what I have used for fixing headers

C#
function fixHeader()
{
var t = document.getElementById("table");
var thead = t.getElementsByTagName("thead")[0];
var t1 = t.cloneNode(false);
t1.appendChild(thead);
tableHeader.appendChild(t1)
}
Posted
Updated 29-Jan-14 19:45pm
v3
Comments
CBadger 30-Jan-14 1:02am    
What do you mean by fixed? Do you mean frozen? like these http://www.massless.org/_tests/grid1/?s=1&r=40&c=40
AmrutaKanvinde 30-Jan-14 1:38am    
Yes I mean frozen.The link you gave shows for gridview .I want the same for repeater.
King Fisher 30-Jan-14 1:14am    
not clear

1 solution

Not sure if you want the header and the first 2 columns frozen but if not both you may have to take a look here link[+]

Or else this will work
C#
this.dataGridView1.Columns["columnName"].Frozen = true;


found this source that also shows the above code as a solution
clickey[*]
 
Share this answer
 

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