Possibility to freeze / fix the top row while scrolling
Closed this issue · 3 comments
really great component! Is there a way to fix or freeze the first row so that the user can scroll down to and still see the name of column?
Hi @sven634231 do you mean the column headings or the first row?
If you do mean column headings then it is possible by setting the StickyHeadings parameter to true on the Datasheet.
If you mean freezing the first row then it's not currently possible to do that.
Hi @anmcgrath , thank you for the detailed response!
I can see it in the code by <div id="rowHeadings" class="@(StickyHeadings ? "row-sticky" : "")">, true?
Can i set the row-sticky class to first row somehow?
Or can the captions (A-B-C..) of the headings be modified?
Hi @sven634231 you can't sticky the first row (at the moment) but you can modify the column headings:
Sheet.Columns.SetHeadings( ... );