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. Image for the cookie policy date
close icon

How to search a value in a hidden column gridgroupcontrol?

Hi, I have a gridgroupingcontrol with four columns: "User," "plan," "Code", "PID".

Only the columns "Code", "PID" I do not want to show the User,
so I removed these two fields on the property VisibleColumns gridgroupincontrol.

Just what I need to get the cell value that is in the column "Code",
starting at a selection of any line.

How do I get this value in VB?

Thank


1 Reply

JJ Jisha Joy Syncfusion Team April 11, 2011 06:22 AM UTC

Hi Tomio,

To get the record with the unique column value, you can handle the following code.

For Each rec As Record In Me.gridGroupingControl1.Table.Records
If rec.GetValue("Department").Equals("MECHANICAL") Then
MessageBox.Show(rec.Info)
Exit For
End If
Next rec

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon