hi i want to bind data form data set into datagird view columns but i can't is there some one to help me pleaaaaaaaaaaaaaaaasssssssssssssssssseeeee
ali.alipanahi
0
Newbie Poster
Recommended Answers
Jump to Post1st do not create any columns for dgv!
They will be created automatically when binding data.Then use this code:
dataGridView1.DataSource = new BindingSource(ds.Tables[0], null); //ds is a reference of dataSet, while Tables[0] is the 1st dataTable from DataSet. //if you have more then one dataTable, …
All 3 Replies
Mitja Bonca
557
Nearly a Posting Maven
kamilacbe
14
Junior Poster in Training
ali.alipanahi
0
Newbie Poster
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.