I have a datatable used as datasource of my databoundgrid. I need to query this table in the codes periodially to get the most current information. It is kind of like
group by company, region
the quantity, region adn company are all columns for this table and names of the columns. It is a easy job in sql but I did not find the proper syntax in C#.
Could anyone please provide some samples?
ADAdministrator Syncfusion Team March 18, 2005 11:12 AM
Our GridDataBoundGrid displays whatever data is in the DataSource. So, if youwant to ''reload'' the data, then you need to reload whatever datasource you are using. This is completely independent fo our grid.
It sounds like you want to should use a SqlDataAdapter/SqlConnection to load a sql query into a DataTable. Then you would set this DataTable as the DataSource for the grid, and it would show your sql query results. In the 126.96.36.199 grid User Guide, check the DataBoundGrid Tutorial. It steps you through using the desiger to create a dataadapter that uses a sql query.