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

How to call store procedure or write sql query for rad control?

1 Answer 36 Views
GridView
This is a migrated thread and some comments may be shown as answers.
R Shah
Top achievements
Rank 1
R Shah asked on 09 Apr 2010, 02:48 PM

Hello,

With following code snippet after connecting database(.dbml) in VS 2008 using server explorer etc – I’m able to bind database with radGridView.
Could you please write some example how can I call store procedure and/or write SQL query in order to retrive specific data?

----------------------------------------------------------------------------
var nwData = new BankDataDataContext();
radGridBankAccounts.ItemsSource = (from tbl_BankAccounts in nwData.tbl_BankAccounts select tbl_BankAccounts); 
radGridBankAccounts.IsReadOnly = true;
----------------------------------------------------------------------------

Thank you,

R

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 09 Apr 2010, 03:02 PM
Hello,

You can check this blog post for more info about Linq To Sql with stored procedures.

Regards,
Vlad
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
R Shah
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or