BlazorDatasheet icon indicating copy to clipboard operation
BlazorDatasheet copied to clipboard

Possibility to freeze columns

Open raghina opened this issue 1 year ago • 1 comments

Is possible to freeze the n first columns?

raghina avatar Jun 10 '24 04:06 raghina

@raghina not at the moment, but I think it would be great to be able to freeze the first n rows or columns.

anmcgrath avatar Jun 29 '24 10:06 anmcgrath

You can do this with CSS:

table tr:nth-child(4) td:first-of-type {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 1;
}

table tr:not(:nth-child(5)) td:nth-child(1) {
    background: #fff;
    position: sticky;
    left: 0;
}

table tr:nth-child(4) td:not(:first-child) {
    position: sticky;
    top: 0;
}

table tr:nth-child(5) {
    position: sticky;
    top: 24px;
}

brenomansurrabelo avatar Nov 01 '24 16:11 brenomansurrabelo