We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to travels through the records in the GridGroupingControl?

Thread ID:

Created:

Updated:

Platform:

Replies:

21557 Nov 15,2004 03:42 AM UTC Nov 16,2004 09:10 AM UTC WinForms 3
loading
Tags: Grouping
Vincent Loy Chee Hoon
Asked On November 15, 2004 03:42 AM UTC

hi,can anyone tell me how to travels through the records in the GridGroupingControl? I got 3 columns in my GridGroupingControl which bind to a datasource and one of the column celltype is checkbox. I wanted to travel through all these records to check whether the Checkbox column value is checked or unchecked. if it uncheck, how to set it check ? thanks for any advice. :)

Administrator [Syncfusion]
Replied On November 15, 2004 08:21 AM UTC

If this is a flat table, you can use this code to loop through its records. You an use r.SetValue to set a value.
private void button1_Click(object sender, System.EventArgs e)
{
	foreach(Record r in this.gridGroupingControl1.Table.Records)
	{
		Console.WriteLine(r.GetValue("Col1"));
	}
}

Vincent Loy Chee Hoon
Replied On November 15, 2004 11:03 PM UTC

Can you give an example in VB version ? thanks :) >If this is a flat table, you can use this code to loop through its records. You an use r.SetValue to set a value. >
>private void button1_Click(object sender, System.EventArgs e)
>{
>	foreach(Record r in this.gridGroupingControl1.Table.Records)
>	{
>		Console.WriteLine(r.GetValue("Col1"));
>	}
>}
>

Administrator [Syncfusion]
Replied On November 16, 2004 09:10 AM UTC

Here is a site that is pretty good at translating snippets from C# to VB. http://authors.aspalliance.com/aldotnet/examples/translate.aspx
Private Sub button1_Click(sender As Object, e As System.EventArgs)
   Dim r As Record
   For Each r In  Me.gridGroupingControl1.Table.Records
      Console.WriteLine(r.GetValue("Col1"))
   Next r
End Sub ''button1_Click

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;