The text of this article is not in this database — only its details are. Read it on the old site: Windows Form Application DataGridView Operations
5 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Windows Form Application DataGridView Operations
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Sr KarthigaPosted Feb 26, 2016, 9:16 AM
good one
Sr KarthigaPosted Feb 26, 2016, 9:16 AM
nice explanation
ThomasPosted Dec 7, 2011, 10:40 AM
Meko you would have to rewrite your sql to pull the tables in a single query. If you are using SQL Server and the SQL Strings are not being build dynamically you can build a stored Procedure and just have the progam call that stored proc. If the SQLs are being build dynamically then change the SQL Statement to be an insert to create tables then have a 3rd sql pull the final dataset for the datagrid. (Just make sure to drop the table when you are done) Also if there is not a common field to join them you can create one by putting a 1 in a cummy column and using that as the join.
meko weldysPosted Dec 7, 2011, 10:16 AM
I have two sqlquery string result and i would like to fill the 1st result in to dataGridView1.Columns1 and the 2nd in to dataGridView1.Columns2 some one can help me on this issue?
ThomasPosted Sep 14, 2011, 7:11 PM
Actually my experience with DataGridView in windows form applications is that if you click on the header it automatically sorts the data At least in visual studio 2005. Maybe it is different with .net or web based applications.