How to Implement Drag-and-Drop with MudBlazor in a MudTable

I’m trying to implement drag-and-drop functionality in a Blazor application using MudBlazor. I aim to have a single drop zone containing a table (MudTable) displaying a student list. I’ve tried several approaches but need help getting the drag-and-drop to work correctly. Here are the details of my current implementation and the issues I’ve encountered.

Current Implementation
I started with the following code:

@page "/main"
@using MudBlazor

<MudPaper Class="ma-4 flex-grow-1">
    <MudDropContainer T="Student" Items="_students" ItemDropped="ItemUpdated" Class="d-flex flex-column mud-height-full">
        <ChildContent>
            <MudDropZone T="Student" Identifier="singleDropZone" Class="flex-grow-1" AllowReorder="true">
                <MudTable Items="_students">
                    <HeaderContent>
                        <MudTh>Name</MudTh>
                        <MudTh>Age</MudTh>
                        <MudTh>Degree</MudTh>
                        <MudTh>College</MudTh>
                    </HeaderContent>
                    <RowTemplate>
                        <MudTr>
                            <MudTd DataLabel="Name">@context.Name</MudTd>
                            <MudTd DataLabel="Age">@context.Age</MudTd>
                            <MudTd DataLabel="Degree">@context.Degree</MudTd>
                            <MudTd DataLabel="College">@context.College</MudTd>
                        </MudTr>
                    </RowTemplate>
                </MudTable>
            </MudDropZone>
        </ChildContent>
        <ItemRenderer>
            <MudListItem>
                <MudTextField Value="@context.Name" Label="Name" ReadOnly="true" />
                <MudTextField Value="@context.Age.ToString()" Label="Age" ReadOnly="true" />
                <MudTextField Value="@context.Degree" Label="Degree" ReadOnly="true" />
                <MudTextField Value="@context.College" Label="College" ReadOnly="true" />
            </MudListItem>
        </ItemRenderer>
    </MudDropContainer>
</MudPaper>

@code {
    private void ItemUpdated(MudItemDropInfo<Student> dropItem)
    {
        // Remove the item from the old position
        _students.Remove(dropItem.Item);
        
        // Insert the item at the new position
        _students.Insert(dropItem.Index, dropItem.Item);
    }

    private List<Student> _students = new()
    {
        new Student { Name = "John Doe", Age = 20, Degree = "B.Sc", College = "College A" },
        new Student { Name = "Jane Smith", Age = 22, Degree = "B.A", College = "College B" },
        new Student { Name = "Alice Johnson", Age = 21, Degree = "B.Com", College = "College C" },
        new Student { Name = "Bob Brown", Age = 23, Degree = "B.Tech", College = "College D" },
        new Student { Name = "Charlie Green", Age = 24, Degree = "B.Arch", College = "College E" }
    };

    public class Student
    {
        public string Name { get; set; }
        public int Age { get; set; }
        public string Degree { get; set; }
        public string College { get; set; }
    }
}

Issues Encountered
The MudItemDropInfo does not contain an Index property, which caused compilation errors.
I’ve tried other methods of handling the reordering, but they haven’t worked correctly.
Alternative Attempts
Attempt 1
I removed the Index property handling and tried to reorder the list without it:

private void ItemUpdated(MudItemDropInfo<Student> dropItem)
{
    // Attempted to reorder without index
    var item = dropItem.Item;
    _students.Remove(item);
    // Logic to insert at new position needed
}

Attempt 2
I wrapped the table rows in a drop zone, but drag-and-drop still didn’t work as expected:

<MudDropZone T="Student" Identifier="singleDropZone" Class="flex-grow-1" AllowReorder="true">
    <MudTable Items="_students">
        <RowTemplate>
            <MudTr>
                <MudTd DataLabel="Name">@context.Name</MudTd>
                <MudTd DataLabel="Age">@context.Age</MudTd>
                <MudTd DataLabel="Degree">@context.Degree</MudTd>
                <MudTd DataLabel="College">@context.College</MudTd>
            </MudTr>
        </RowTemplate>
    </MudTable>
</MudDropZone>

Requirements
A single drop zone containing a table.
Ability to drag and drop rows within the table to reorder them.
Question
How can I correctly implement drag-and-drop functionality for a table using MudBlazor? Any guidance or working examples would be greatly appreciated!

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật