how do I populate a datagrid in a smart device with data from a sql database(not SQL CE)
Don_leon
0
Newbie Poster
Recommended Answers
Jump to Post//to populate dataset SqlDataAdapter da = new SqlDataAdapter ("select * from yourtable",connection); DataSet ds = new DataSet(); //fill dataset with the returned results by da da.Fill(ds); //if dataset is not empty to prevent exception when there is no records returned if(ds.Tables[0].Rows.Count > 0) { //populate the datagridview …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.