Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
22323 | Dec 9,2004 08:30 PM UTC | Dec 13,2004 09:57 PM UTC | WinForms | 6 |
![]() |
Tags: Grouping |
foreach(Record r in this.gridGroupingControl1.Table.Records)
{
string s = r.GetValue("DoExpand").ToString();
if(s == "1"))
this.gridGroupingControl1.Table.ShowRecord(r);
}
If this is not what you need can you post a sample project that shows what you need? I could then modify it to get it working.
Thanks,
Stefan
Private Sub button2_Click(sender As Object, e As System.EventArgs) Dim r As Record For Each r In Me.gridGroupingControl2.Table.Records If r.GetValue("Col3").ToString() = "1" Then Dim el As Element = r While Not (el.ParentGroup Is Nothing) el.ParentGroup.IsExpanded = True el = el.ParentGroup End While Console.WriteLine(r.ToString()) End If Next r Me.gridGroupingControl1.Table.InvalidateSummariesBottomUp() Me.gridGroupingControl1.TableControl.Refresh() End Sub ''button2_Click
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.
This page will automatically be redirected to the sign-in page in 10 seconds.