Hi..
I'm stuck at one issue!!!!
I'm able to hide the default expandcollapse column in the body of the grid but the header still maintains the column, thus leaving an blank column at the end in the body.
I tried the following code in the onclick of my button functionality (Also tried placing in pre-render and column-created)
I'm stuck at one issue!!!!
I'm able to hide the default expandcollapse column in the body of the grid but the header still maintains the column, thus leaving an blank column at the end in the body.
I tried the following code in the onclick of my button functionality (Also tried placing in pre-render and column-created)
For Each item As GridDataItem In RGResults.Items
item.Item(
"ExpandColumn").Visible = False
item.Item(
"ExpandColumn").Width = 0
Next
For Each headerItem As GridGroupHeaderItem In RGResults.MasterTableView.GetItems(GridItemType.GroupHeader)
CType(headerItem.Controls(0).Controls(0), Button).Visible = False
Next
If isEdit AndAlso TypeOf RGResults.Columns(0) Is GridExpandColumn Then
RGResults.Columns(0).Display =
False
End If
Can this be fixed without creating a custom templatecolumn for the expand functionality..
Thanks!