Hiding Rows in UltraWinGrid

  • Thread starter Greg Prater via .NET 247
  • Start date
G

Greg Prater via .NET 247

I am using infragistics UltraWinGrid in my vb.net, windows basedapplication. I am building a UltraWinGrid datagrid in the appby defining a dataview from a dataset that I have retrieved anddefining the datagrid source as the dataview:ulgDataGrid.DataSource = dv1.

Background: The dataview is a table of descriptions with columnsnames - ID, Category, Name, Description, ProviderID, andVersionID
Now that I have data in my datagrid, I want to be able to hiderows programatically, based on the value in the 6th row of mydatagrid. When a row has a VersionID = a certain number, I wantto be able to hide that entire row. I have tried:

Dim objInfraCol AsInfragistics.Win.UltraWinGrid.UltraGridColumn

objInfraCol =ulgDataGrid.DisplayLayout.Bands(0).Columns("VersionID")
For Each rowTestRow In ulgDataGrid.Rows
If ulgDataGrid.Rows(j).GetCellValue(objInfraCol)= intVersionID Then
ulgDataGrid.DisplayLayout.Grid.Rows(j).Hidden= True
End If
j += 1
Next

Can someone help? Seems like it should be simple with a robustcontrol like UWG.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top