Hi all, I am creating grid based on Card View style.I have attached several columns to separate groups ( I have created those groups in Row Layout Designer ). I am wonder if it is any way to show ExpansionInderaicator for created groups in Card View? I can do this for Grid but I can not find this for grid itself if we are changing layout only for one band.
Good example of what I am trying to do is Properties window in Visual Studio. I want to implement similar functionality in my program but right now I got stuck.
Regards Piotr
Hi Mike,
Sample WinTree called PropertyGrid is what I was looking for.
Thank you
Piotr
Hi Piotr,
I'm still not sure I understand what you are trying to do. If you are trying to duplicate the PropertyGrid, then you would not want to use CardView. This would basically be a regular grid with two columns. The problem with this is that the WinGrid only support homogenous data. So you can't do what the property grid does and have a column with variable data types.
If you want something like the PropertyGrid, then you might want to look at the WinTree instead of the WinGrid. The tree supports heterogeneous data. There's even a sample of the WinTree called PropertyGrid which makes the tree look a lot like the PropertyGrid in Visual Studio.
Card Style equal to Compossed is good solution but I am looking for control or some settings to
present GRID in a way like properties are represents in Grid Designer for example.
We have two columns only. First is the name and second is data related to this name.
I can do this in the way you described but I was thinking that maybe is some way ( be default in Infragistics ) to do this.
Regards
I'm not sure I understand what you are describing. There is no way to expand a group in the grid, either in CardView mode or the standard mode. You can only expand/collapse rows or cards.
To set up your grid with collapsible cards, you would use the Style property on the CardSettings.
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].CardView = true; e.Layout.Bands[0].CardSettings.Style = CardStyle.Compressed; }