For Each fltItem As GridFilteringItem In rgvEmployees.MasterTableView.GetItems(GridItemType.FilteringItem)
For Each column As GridColumn In rgvEmployees.MasterTableView.Columns
If column.ColumnType = "GridBoundColumn" Or column.ColumnType = "GridTemplateColumn" Then
If column.ColumnType = "GridBoundColumn" Then
strFilterName = column.UniqueName
ElseIf column.ColumnType = "GridTemplateColumn" Then
strFilterName = Right(column.UniqueName, Len(column.UniqueName) - 3)
If Not TryCast(fltItem(column.UniqueName).FindControl(strFilterName), RadComboBox) Is Nothing Then
Dim rcbFilter As RadComboBox = DirectCast(fltItem(column.UniqueName).FindControl("rcbFilter" + strFilterName), RadComboBox)
strFilterFields = strFilterFields + strFilterName + "," + rcbFilter.Text + ";"
But I should have been more clear on what I am trying to do. I have filter templates on each of my columns in my grid and I am trying to loop through all the columns on the grid and determine if the column has a filter template associated with it. If it does I would like to retrieve the control within the filter template and get its unique name, text value, selected index, type of control. I want to be able to do this without knowing what the unique name of the filter template is.