Click here to Skip to main content
15,919,613 members
Home / Discussions / WPF
   

WPF

 
QuestionHow to access sql server database to display the data using dropdown using WPF and XAML Pin
Krishna Aditya15-Jul-09 3:47
Krishna Aditya15-Jul-09 3:47 
Hi All,

I started developing simple application in WPF and XAML.

I want to try accessign the sql server database and display the data from stored procedure onto the UI form.

I have a table called parentProject -> idParentProject (pk), txtParentProjName varchar(max).
my SP is parentProj_sp -> select * from parentProject.
n
I want to use a dropdown list in which, If the sp returns say (3) records, then dropdownlist should have those 3 records retreived from sp.

similar manner, I have subproject -> idsubproject(pk), idParentProject , txtSubProjectName varchar(max), dateProjstart, dateprojectend.

once the parentprojectname is selected from first dropdown, then, subproject dropdown should be enabled and it should have the subprojectnames for the corresponding parent project.

my sp is subproject_sp -> SELECT dtProjectStart, dtProjectEnd FROM tblSubProject WHERE (idParentProject = @idProjectIndex).

please help me how to connect to database in C# using WPF and XAML.


My main intention, is connecting to database in WPF.

Thank You,
Ramm
AnswerRe: How to access sql server database to display the data using dropdown using WPF and XAML Pin
Pete O'Hanlon15-Jul-09 9:14
mvePete O'Hanlon15-Jul-09 9:14 
QuestionHorizontal Binding Pin
Adriaan Davel15-Jul-09 2:12
Adriaan Davel15-Jul-09 2:12 
AnswerRe: Horizontal Binding Pin
Not Active15-Jul-09 2:35
mentorNot Active15-Jul-09 2:35 
GeneralRe: Horizontal Binding Pin
Adriaan Davel15-Jul-09 2:58
Adriaan Davel15-Jul-09 2:58 
AnswerRe: Horizontal Binding Pin
Mark Salsbery15-Jul-09 6:42
Mark Salsbery15-Jul-09 6:42 
GeneralRe: Horizontal Binding Pin
Adriaan Davel15-Jul-09 19:20
Adriaan Davel15-Jul-09 19:20 
GeneralRe: Horizontal Binding Pin
Adriaan Davel15-Jul-09 20:27
Adriaan Davel15-Jul-09 20:27 
QuestionWPF treeview binding question Pin
daniel radford15-Jul-09 0:14
daniel radford15-Jul-09 0:14 
AnswerRe: WPF treeview binding question Pin
Eslam Afifi15-Jul-09 15:25
Eslam Afifi15-Jul-09 15:25 
GeneralRe: WPF treeview binding question Pin
daniel radford15-Jul-09 22:41
daniel radford15-Jul-09 22:41 
GeneralRe: WPF treeview binding question Pin
Pete O'Hanlon15-Jul-09 23:09
mvePete O'Hanlon15-Jul-09 23:09 
Questionhow to add multiple toolbox controls in xaml Pin
Krishna Aditya14-Jul-09 22:34
Krishna Aditya14-Jul-09 22:34 
AnswerRe: how to add multiple toolbox controls in xaml Pin
Pete O'Hanlon14-Jul-09 23:00
mvePete O'Hanlon14-Jul-09 23:00 
Question(WPF) If Xaml That powerful? in real? [modified] Pin
cppwxwidgetsss14-Jul-09 21:19
cppwxwidgetsss14-Jul-09 21:19 
AnswerRe: (WPF) If Xaml That powerful? in real? Pin
Christian Graus15-Jul-09 0:53
protectorChristian Graus15-Jul-09 0:53 
AnswerRe: (WPF) If Xaml That powerful? in real? Pin
#realJSOP15-Jul-09 1:03
professional#realJSOP15-Jul-09 1:03 
AnswerRe: (WPF) If Xaml That powerful? in real? Pin
Pete O'Hanlon15-Jul-09 1:08
mvePete O'Hanlon15-Jul-09 1:08 
GeneralRe: (WPF) If Xaml That powerful? in real? Pin
Christian Graus15-Jul-09 1:26
protectorChristian Graus15-Jul-09 1:26 
AnswerRe: (WPF) If Xaml That powerful? in real? Pin
Mark Salsbery15-Jul-09 6:54
Mark Salsbery15-Jul-09 6:54 
QuestionSilverlight UserControl [modified] Pin
GomathiR13-Jul-09 22:11
GomathiR13-Jul-09 22:11 
AnswerRe: Silverlight UserControl Pin
Michael Sync23-Jul-09 6:58
Michael Sync23-Jul-09 6:58 
QuestionHow to partially load controls in WPF Pages Pin
laprathab13-Jul-09 21:48
laprathab13-Jul-09 21:48 
AnswerRe: How to partially load controls in WPF Pages Pin
Pete O'Hanlon13-Jul-09 21:58
mvePete O'Hanlon13-Jul-09 21:58 
QuestionSilverlight file is not diplayed Pin
Rajeeeeee13-Jul-09 20:28
Rajeeeeee13-Jul-09 20:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.