This is a migrated thread and some comments may be shown as answers.

Sample Code

2 Answers 187 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nicky
Top achievements
Rank 1
Nicky asked on 04 Sep 2007, 04:53 PM
I am currently playing around with the trial version of the RadControls.  I was wondering if there is a sample code for the RadGridView Control i can use that binds to Microsoft SQL Server database and allow grouping with different column field for each grouping.

Thank you
Nicky

2 Answers, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 1
answered on 05 Sep 2007, 01:36 AM
Hi Nicky,

There should be a fully Demo Project included with the install that will show how to bind to a DataReader. So you can just create a your datareader from an SQL Server connection like normal.

You can also just create a Dataset  linking to a MS SQL database like normal, and then Bind the RadGridView to that dataset just through the properties.
0
Julian Benkov
Telerik team
answered on 05 Sep 2007, 10:46 AM
Hi Nicky,

You can create typed DataSet linked to a SQL Server database, and then bind RadGridView to this dataset using the DataSource/DataMember properties.

Grouping is accessible and can be changed by the GroupByExpressions collection of MasterGridViewTemplate of RadGridView. But first look at the examples that come with the installation as they demonstrate this feature nicely. 

I hope this helps.
 

Kind regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Nicky
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 1
Julian Benkov
Telerik team
Share this question
or