Hi. I think I've tried everything, and I can't get rid of it. I want detail tables, but not the expandcollapsecolumn. This is what I have so far:
In the declaration:
In code:
With all this, I still end up with the ExpandColumn header showing up. The actual column cells are hidden, which causes all my other cells to be shifted left, thus getting their data in a row one left of their header... does it really have to be this hard to get rid of that thing?
In the declaration:
| <MasterTableView> |
| ... |
| <ExpandCollapseColumn Visible="false" Display="false" /> |
| ... |
| </MasterTableView> |
In code:
| protected void Roles_PreRender( object sender, EventArgs e ) |
| { |
| (RoleGrid.MasterTableView.GetColumn( "ExpandColumn" ) as GridExpandColumn).Visible = false; |
| RoleGrid.MasterTableView.Columns[0].Visible = false; |
| } |
| protected void RoleGrid_ItemCreated( object sender, GridItemEventArgs e ) |
| { |
| if( e.Item is GridDataItem ) |
| { |
| (e.Item as GridDataItem)["ExpandColumn"].Visible = false; |
| } |
| } |
With all this, I still end up with the ExpandColumn header showing up. The actual column cells are hidden, which causes all my other cells to be shifted left, thus getting their data in a row one left of their header... does it really have to be this hard to get rid of that thing?