Multiple rows in a DataGridView

  • Thread starter Thread starter Guest
  • Start date Start date
David,

You realize the example on the page is setting MultiSelect to false,
which in turn, will disable it. You will have to set this property to true,
and then set the SelectionMode property to
DataGridViewSelectionMode.FullRowSelect or RowHeaderSelect.

Hope this helps.
 
Thank you, but yes I do realize this. In the properties for my DataGridView,
it is set to true and the SelectionMode is set to FullRowSelect, but I still
can't select mutliple rows. Do I have to do this progammically and not in
the properties options?

Thanks,

David


Nicholas Paldino said:
David,

You realize the example on the page is setting MultiSelect to false,
which in turn, will disable it. You will have to set this property to true,
and then set the SelectionMode property to
DataGridViewSelectionMode.FullRowSelect or RowHeaderSelect.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
I was looking at this article, but it doesn't work for me.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.multiselect.aspx

I can not select multiple rows in my datagridview. Any ideas?

Thanks,

David
 
Never mind... my mistake. The multiple select works just fine. I missed
something in my code.

Carry on.

David



David said:
Thank you, but yes I do realize this. In the properties for my DataGridView,
it is set to true and the SelectionMode is set to FullRowSelect, but I still
can't select mutliple rows. Do I have to do this progammically and not in
the properties options?

Thanks,

David


Nicholas Paldino said:
David,

You realize the example on the page is setting MultiSelect to false,
which in turn, will disable it. You will have to set this property to true,
and then set the SelectionMode property to
DataGridViewSelectionMode.FullRowSelect or RowHeaderSelect.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

David said:
I was looking at this article, but it doesn't work for me.

http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.multiselect.aspx

I can not select multiple rows in my datagridview. Any ideas?

Thanks,

David
 
Back
Top