Suppose I have used the following MySQL query:
select * from userinfo;
In the database the following columns are available: username, email, pass, secqu, secan;
Now I want to show only the username, and email columns value into my DataGridView
.
Now My Question is: How can I do it? Code like something datagridview.rows[index]. ....
something like this is used, but I cannot remember. Can anyone help to do this?
N.B: Please do not reply with the following one:
1. change the query into [select username, email from userinfo;];
2. Change which columns will you want hide or not. As the other columns value are required so I need to use the query.