I am new to C# and am trying to figure out if there is an easy way to send a DataTable to DataGridView.
Tobiczyk 0 Newbie Poster
Recommended Answers
Jump to Post/// <summary> /// Used to set up the data table when the user types a query. /// </summary> void BuildDataGrid() { dataGridView1.DataSource = GetSearchResults(queryStr); } /// <summary> /// Connect to the database and then use an adapter to /// fill a DataTable. /// </summary> DataTable GetSearchResults(string queryStr) …
All 4 Replies
Michael27 29 Newbie Poster
Michael27 29 Newbie Poster
Tobiczyk 0 Newbie Poster
Mitja Bonca 557 Nearly a Posting Maven
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.