Hey,
I am having a problem hiding the expand icon on a Grid. I've been trying to follow the examples in the documentation, but I'm trying to do it a little different than what is posted. I have a column in the master view that tells me if I have additional records in a detail table. So I'm trying to utilize this column in order to show or hide the expand icon.
Here is an example of what I have so far, but I must admit, I'm really lost.
I am getting in the if statement based on my "AdditionalAddresses" column, however, I can't seem to find out how to reference the "expandColumn" cell.
Thanks,
Bob
I am having a problem hiding the expand icon on a Grid. I've been trying to follow the examples in the documentation, but I'm trying to do it a little different than what is posted. I have a column in the master view that tells me if I have additional records in a detail table. So I'm trying to utilize this column in order to show or hide the expand icon.
Here is an example of what I have so far, but I must admit, I'm really lost.
| Dim nestedViewItems As GridItem() = tableView.GetItems(GridItemType.Item) |
| For Each nestedViewItem As GridItem In nestedViewItems |
| If nestedViewItem.DataItem("AdditionalAddresses") > 0 Then |
| Dim NestedGridItem As GridNestedViewItem = NestedGridItems(nestedViewItem.ItemIndex) |
| Dim cell As TableCell = NestedGridItem.NestedTableViews(0).ParentItem("ExpandColumn") |
| cell.Controls(0).Visible = False |
| nestedViewItem.Visible = False |
| End If |
| Next |
I am getting in the if statement based on my "AdditionalAddresses" column, however, I can't seem to find out how to reference the "expandColumn" cell.
Thanks,
Bob