Skip to content

FluentDataGrid - Fixed Column & Header #3104

Answered by hml-coder
InCerryGit asked this question in Q&A
Discussion options

You must be logged in to vote

For a pure CSS solution you could try something like this although this is as far as I went with testing and it's possible that a future release of the FluentDataGrid may break these css styles.

The th { display: table-cell!important; } is required for now to prevent the header text from shrinking but a fix was added in #3156 so that style override won't be needed for long.

Make sure the z-index of the fixed columns is at least 3 since the current z-index of column headers is 2.

<div class="table-container">
    <FluentDataGrid TGridItem="Test" Items="items.AsQueryable()">
        <TemplateColumn Sortable="true" Title="First Column" Class="fixed-column first-column" >
            @context…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hml-coder
Comment options

Answer selected by vnbaaij
# for free to join this conversation on GitHub. Already have an account? # to comment
Category
Q&A
Labels
None yet
3 participants