Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
dataset seems to be empty---wpftoolkit
April 04, 2010
im using windows appp wpf with c# .
dataset is empty for the code though my tble has value..
string connb = System.Configuration.ConfigurationSettings.AppSettings["anaMusical.Properties.Settings.anaConnectionString"].ToString();
SqlConnection conn = new SqlConnection(connb);
string strSql = "SELECT * FROM anaMusical";
com = new SqlCommand(strSql, conn);
SqlDataAdapter da = new SqlDataAdapter(com);
da.SelectCommand = com;
DataSet ds12 = new DataSet();
dataGrid4.DataContext = ds12;
//dataGrid4.ItemsSource = ds12.Tables.ToString();
Posted Date: April 05, 2010 Points: 5
Could you please check the connection string? Because your code seems fine
Mark As Answer if this solve your problem
To post reply
Related Questions Related Questions
what are the dataset features
How to add the values stored in the dataset....
using dataset,datarow and connectionstring displaying allrecords separated by coma in textbox by cal
What is Typed DataSet? How to Create Typed DataSet?
How to Delete Non-Empty Folder in Vb.net
Swap DataSet Tables column as row and row as Column
How to get table column name from dataset table
dataset ds= new dataset();--type was not found..error
Multiple Dataset in repeater control
how can we use runtime generted dataset
Latest Forum Questions From The Same Category
Share WPF Application over net
Rich Desktop Interactive application
How To Find the Combobox in Wpf
Getting Row Value is null in WPF.
Combobox Binding in WPF
Add button to datagrid Dynamially in wpf
Detecting Mobile Device IMEI, IMSI, Model, Comport Information using AT commands in VB.Net
Show the Default Text Of Combobox as "--Select--" when combo is binding to dataset.
how to stop .swf html page any button click in wpf,any idea please share with me
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend