Hi Phil,
I performed a test based on your description but didn't reproduce the
problem on my side. All selected rows in the DataGridView are updated
immediately in my test application.
I create a WinForm Application project in VS2008 and add a DataGridView and
a Button on the Form1. I add a DataGridViewCheckBoxColumn in the
DataGridView. The following is the code in the Form1.vb:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.DataGridView1.SelectionMode =
DataGridViewSelectionMode.FullRowSelect
Me.DataGridView1.RowCount = 10
For i As Integer = 0 To 9
Me.DataGridView1.Rows(i).Cells(0).Value = True
Next
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
For Each row As DataGridViewRow In Me.DataGridView1.SelectedRows
row.Cells(0).Value = False
Next
End Sub
End Class
Build and run the application. Select some rows in the DataGridView with
Mouse and click the Button, all selected rows are updated immediately.
Is there any difference between your code and mine?
Sincerely,
Linda Liu
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.