Is there a way to show a wingrid just below a row of another wingrid?
The scenario is with respect to usability. I have a column in a grid which displays a button (basically column style is set to button). On click of this cell, i should display another grid, just below the row that the user clicked. It cannot be hierarchial as the reference would NOT be to the first column. The catch is to display below the row..
Appreciate any help.
There is no way to do this without using a hierarchical relationship (and even this wouldn't display a completely separate grid). I'm not even sure that this would be possible with a CreationFilter, since the scrolling behavior would likely be broken by manipulating all of the various row element rects.
-Matt
Ok,. Is there a way to hide child columns that i build. I'm trying to format the apperance which gives the appearance as a new grid. In doing so, i have to move the columns just below the column which has the CreationFilter. So idea is to add couple of dummy columns and hide it.
Any help is appreciated!
Thanks
Let me put it in simple words.. If i use a hierarchial grid, can i format the appearance of the child grid? Usually, the data displays below the parent row and spans across the full grid, can i hide some columns in the child grid?
Hope this is clear..
viswanth said:Usually, the data displays below the parent row and spans across the full grid
The child band has it's own set of columns and these need not be the same or even related to the columns in the parent band. So you can certainly hide columns in the child band. I'm not sure what you mean by "spans across the full grid". The child band column span as far as they need to span depending on the size and number of columns.
Mike Saltzman"] The child band has it's own set of columns and these need not be the same or even related to the columns in the parent band.
The child band has it's own set of columns and these need not be the same or even related to the columns in the parent band.
Does this also mean that it is possible for the bands to have different structures?
What I am thinking of here is that you might have two parent rows, say A and B
A has child data with structure of columns F, G, H
B has child data with structure of columns M, N, P
Can this be achieved?
Cheers
Alan
Hi Alan,
alanjackson said:Does this also mean that it is possible for the bands to have different structures?
I'm not sure about your use of the word "also" here. That's pretty much exactly what I said. Each band has it's own structure - it's own set of columns.
alanjackson said: What I am thinking of here is that you might have two parent rows, say A and B A has child data with structure of columns F, G, H B has child data with structure of columns M, N, P Can this be achieved?
No, that's not what I meant. A Band spans across all parent rows, it's not specific to an individual parent row. What you are talking about here is called non-homogenous data. The grid cannot support this.
One thing you could do is set up your data structure so that you have two child bands. So every parent row has a child band with "F, G, H" and every parent row has another child band with "M, N, P". But not every parent row has to have child rows in each band. Some of the child collections can be empty and thus only the child band with data in it will actually show up in the grid.
Another option would be to use UltraWinTree instead of the UltraWinGrid. The tree does support non-homogenous data sources. But it lacks some of the features of the grid such as summaries and filtering.
Thanks Mike,
So, am I correct then in that the data source would need to have F G H M N and P in it?
I would then need to set up multiple child bands for my grid which have the different sets of columns in it?
If this is the case, do you have any samples on how to do this? I'm pretty new to Infragistics controls and haven't done anything with child bands yet
alanjackson said:So, am I correct then in that the data source would need to have F G H M N and P in it?
Yes, but they could be in different band. Basically the strcuture would look like this:
Root Band (with some columns)
Child Band 1 (columns: F, G, H)
Child Band 2 (columns: M, N, P)
alanjackson said:If this is the case, do you have any samples on how to do this? I'm pretty new to Infragistics controls and haven't done anything with child bands yet
I'm sure there must be samples in the WinGrid Samples Explorer that have sibling child bands. But the data structure has to be set up on the DataSource, not within the grid. So how you do this depends on what kind of DataSource you are planning to use.
If you use the UltraDataSource component, then setting this up would be pretty intuitive using the designer. The UltraDataSource always has a single root band. So you just add two child bands to that root band and then add the columns you want to each band.
With a DataSet, you would create three tables: a root table and two child tables. Then you would add a couple of Relationships to the DataSet to associate the parent table with each of the two child tables.