473,473 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Multiple rows in a DataGridView

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

http://msdn2.microsoft.com/en-us/lib...ltiselect.aspx

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

Thanks,

David

Nov 17 '05 #1
3 10423
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]
- mv*@spam.guard.caspershouse.com

"David" <Da***@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
I was looking at this article, but it doesn't work for me.

http://msdn2.microsoft.com/en-us/lib...ltiselect.aspx

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

Thanks,

David

Nov 17 '05 #2
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 [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com

"David" <Da***@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
I was looking at this article, but it doesn't work for me.

http://msdn2.microsoft.com/en-us/lib...ltiselect.aspx

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

Thanks,

David


Nov 17 '05 #3
Never mind... my mistake. The multiple select works just fine. I missed
something in my code.

Carry on.

David

"David" wrote:
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 [.NET/C# MVP]" wrote:
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]
- mv*@spam.guard.caspershouse.com

"David" <Da***@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
I was looking at this article, but it doesn't work for me.

http://msdn2.microsoft.com/en-us/lib...ltiselect.aspx

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

Thanks,

David


Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: GS | last post by:
Hi, I have dataGridView with MultupleSelect property enabled and I programmatically set rows to be Selected based on checkbox being selected in DataGrid (code below). Issue is that it resets...
3
by: Rich | last post by:
Hello, I am populating a datagridview from a datatable and filtering the number of rows with a dataview object. Is there a way to retrieve the rows displayed by the datagridview into a separate...
3
by: manjub | last post by:
Hi, I am trying to add ability to delete multiple rows from a DataGridView in my application. When user selects multiple rows and presses delete button, I want to show a message asking to user...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
4
by: Vidhura | last post by:
This article explains how to make all the rows height the same in DataGridView in .Net 2.0 while using AutoSizeRowMode In DataGridView 2.0,there is a option to resize row to fit the content of...
2
by: mdfayazi | last post by:
I am using dataadapter to Add,Update,Delete rows in a datagridview.Update and delete are working but while adding a rows the problem comes.When I add more than one row only first row values are...
6
by: =?Utf-8?B?TU1TSkVE?= | last post by:
How to let user delete multi rows from the BindingSource while the SelectionMode Property set to RowHeaderSelect I have in my program datagridview bound it to sql table Throw Bindingsource To...
3
by: =?Utf-8?B?S2F5xLFoYW4=?= | last post by:
In my project,i added datagridview to my form , i transfered my table to datagridview and added multiple rows and when i called dataadapther.update ,,result is ok. But when i tried it for the...
6
by: Gun Slinger | last post by:
Hi guys, I have a quick question which i have pondered for a little while. I'm not sure if its even a good idea (so maybe advice on whether or not to do it would be helpful as well). I want to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.