maui Datagrid From ( akgul.Maui.DataGrid )

So i have asked in StackOverflow and i receved awnser of (dont use datatable).

So im hoping to come here to the professionals.



I have been working on finding a solution to making datagrid fill info from the sql query. I have worked off my working WPF build and for some reason i cant get the data to fill the Table.

I have used dg:datagrid , Uranium , (DevExpress (Gives Loading Errors)) , and Making My own Grid. None have given me data back.

c#

string jobs = ("SELECT * FROM " + Table); // Selecting All Jobs ---------
SqlCommand cmd = new SqlCommand(jobs, conn);
                
try
{
                conn.Open();
                SqlDataAdapter sda = new SqlDataAdapter(cmd);
                DataSet ds = new DataSet();
                sda.Fill(ds,Table);
                dataview.ItemsSource = ds.Tables;

<dg:DataGridColumn Title="Id"  Width="30">
    <dg:DataGridColumn.CellTemplate>
        <DataTemplate>
            <Label Text="{Binding Id}"/>
        </DataTemplate>
    </dg:DataGridColumn.CellTemplate>
</dg:DataGridColumn>

Thanks
Screenshot_2024-07-24_163728.png
Was this page helpful?