473,804 Members | 3,509 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Datagrid multi-selected rows collection

hi,
Is that such thing as selected collection exist ?

I need a way to select all selected rows into a datagrid then "unchecked"
the Active columns then save the result.

but as soon i modified 1 row all other row aren't selected any more
Do I have to build the rows collection my-self?

thanks,

Marc R.


Jan 14 '06 #1
1 2697

"Marc R." <No****@Newgrou psONLY.com> wrote in message
news:Oy******** *****@TK2MSFTNG P11.phx.gbl...
hi,
Is that such thing as selected collection exist ?

I need a way to select all selected rows into a datagrid then "unchecked"
the Active columns then save the result.

but as soon i modified 1 row all other row aren't selected any more
Do I have to build the rows collection my-self?

thanks,

Marc R.

Here's how I did it, But i'm not convice that is the best way.

Dim cpt As Integer

Dim dgCol As DataGridColumnS tyle

Try

dgCol = Me.grd_Client.T ableStyles(0).G ridColumnStyles (2)

For cpt = 0 To Me.DV.Count - 1

If Me.grd_Client.I sSelected(cpt) Then

Me.DV.AllowEdit = True

Me.DV.Item(cpt) .Row.Item("Clt_ Actif") = False

End If

Next

For cpt = 0 To Me.DV.Count - 1

Me.grd_Client.I tem(cpt, 2) = False

Next

Catch ex As System.Exceptio n

MsgBox(ex.Messa ge + vbCrLf + "me.dv.coun t = " + Me.DV.Count + vbCrLf + _

"cpt = " + cpt)

End Try

Let Me know please is that is the only way.


Jan 14 '06 #2

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

Similar topics

1
2294
by: Alex | last post by:
I found some good information On Multi-row Editing in the ASP.NET DataGrid at this site http://www.dedicatedsolutions.co.uk/DesktopDefault.aspx?tabid=62 It is worth the click
4
1514
by: Coleen | last post by:
Sorry about the multi-posting, but it does not seem as though the other newsgroups are frequented enough to get any advice on this problem...If anyone can possibly help, I would greatly appreciate it, I've spent three days trying figure out why paging won't work for me...TIA. I've been to gotdotnet.com/quickstart...samples and reviewed the Source control for adding paging to datagrids, my problem is that we do not connect to an SQL...
0
1049
by: Robert Roney via .NET 247 | last post by:
I'm using a datagrid which allows multi-row editing. Everything works fine, as long as you don't update the sorted field within the DataGrid, if you do that the DataView reflects the changes as soon as they are completed, thus causing errors for remaining items. i.e. 1 a , 2 b , 3 c (Change b to d (sort column))... every things works fine until it finishes the second item in the grid, then the view has (1 a, 3 c, 2 d) and the grid has...
1
1230
by: Roger | last post by:
Hi: I'm trying to perform a multi-select in a datagrid using a ButtonColumn. Anyone know how to do this? Roger
4
3237
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
1
6086
by: jeff maultby | last post by:
Hi All I need to display multiple lines of text in same column in datagrid on display as well as on edit. Want each row's height to auto size on display according to the nbr of lines in the multiline column. Don't want all rows to be same height when their text is only 1 line. Currently can only get this to happen when row height has been manually changed and cell is set to editable and then only when click into cell. The behaviour i...
2
4546
by: jaYPee | last post by:
i have search a lot of newsgroup and some website to find a sample for multi column combobox in datagrid but no luck. there are so many sample i found but it is not located in datagrid. i would be very glad if you can direct me to a website that has this sample thanks in advance.
5
2232
by: lanem | last post by:
I want to display some drill-down data with a datagrid look. I can get the exact functionality I want with a treeview, but I don't like the way the treeview looks and formats the data. I want a multi-column table look like a datagrid. It is not as easy as just hardcoding a datagrid within a datagrid because the data may do down pretty deep. The treeview works great for this. Is there a way to make the treeview look kind of like a...
9
2132
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. For a datagrid control, i used the Caption property. It displays fine on the datagrid and allows me to run the program. But, when i view the HTML for the web form, it shows this error at the
3
2562
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report reflect the values they anticipate committing to see hypothetical totals of columns from a set of records. These records are displaying properly on my DataGrid but I'm not sure how to get Crystal Reports 10 to use as its datasource the dataset...
0
9708
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10589
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10327
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.