BlazorDatasheet icon indicating copy to clipboard operation
BlazorDatasheet copied to clipboard

Possibility to freeze / fix the top row while scrolling

Open sven634231 opened this issue 1 year ago • 2 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?

sven634231 avatar Mar 27 '24 16:03 sven634231

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.

anmcgrath avatar Apr 06 '24 22:04 anmcgrath

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?

sven634231 avatar Apr 07 '24 13:04 sven634231

Hi @sven634231 you can't sticky the first row (at the moment) but you can modify the column headings:

Sheet.Columns.SetHeadings( ... );

anmcgrath avatar May 14 '24 09:05 anmcgrath