DataGridView in VB.NET?

10 pts.
Tags:
DataViewGrid
VB.NET
I'm quite new to VB.NET and I found the DataGridView component very useful. However, there are 2 things that I don't like, and would like to change. So, 1) Is there any way to force the selection onto the entire row instead of just that box (the DataGrid is in ReadOnly mode)? 2) I realy hate that first column to the left. Is there any way to make it disappear so that it looks like a regular Windows Explorer/My Computer window?
ASKED: March 9, 2008  3:12 AM
UPDATED: September 19, 2011  8:28 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

For the selection, you can use the datagridview property called SelectionMode.
Here’s more details about that on MSDN:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.selectionmode(VS.85).aspx

For the left column to disappear, you need to set the datagridview property RowHeadersVisible to false.

Hope this helps!

Joelle

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following