© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
2 replies
Drew Edwards - Vegas :

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.

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;
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>
<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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ DataGrid Equivalent for MAUI
C#CC# / help
2y ago
❔ DataGrid control in Maui
C#CC# / help
3y ago
✅ EXE from MAUI
C#CC# / help
4y ago
Updating datagrid gui from other threads
C#CC# / help
2y ago