I have UltraWinGrid divided into 2 cards.
First card contains 10 columns and is displaying correctly with the scroll bars. In second card I have 18 columns and is merged with first card in such a way that card 1 rows are displayed with card 0 rows (not using collapse and expand, this was the requirement). Below is the code for Band(1)
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -------
.Indentation = 0
.CardView = True
.CardSettings.MaxCardAreaCols = 50
.CardSettings.ShowCaption = False
.CardSettings.Style = CardStyle.StandardLabels
.CardSettings.CardScrollbars = CardScrollbars.None
.ColHeadersVisible = False
''Column style
.Override.HeaderAppearance.BackColor = Color.YellowGreen
.Override.CellAppearance.BackColor = Color.YellowGreen
The problem is that while scrolling the grid all columns of card 0 are available but only a few columns from card 1 are visible (first 8). I can scroll to only first 8 columns using scroll bar. Whereas while using keyboard arrow keys I can scroll to all 18 columns. I am using VS2008 with VB.Net windows application.
Any help would be greatly appreciated.
Thanks in advance,
Ashish Sharma
Hi Ashish,
I'm not sure I understand you. What kind of data source are you using for your grid?
The grid cannot support non-homogenous data sources. Every row in the list has to have the same data structure. So you cannot have a different number of columns in different rows in the same band.
I am using the homogenous datasource for both the Cards. Please refer the details below:
-For .Card(0) there must be a specific number of columns, say 10 (Non-Green columns in the attached image).
-For .Card(1) there must be any number of rows and this card is merger with .Card(0) with the help of a common column in both the cards.
Even if the number of columns are 0 (Zero) for all rows in .Card(1), then also scroll bar would show the blank space while scrolling. Is there any way to set the scrolling region in such a way that scroll length would be exactly match the number of columns in the grid.
Thanks in Advance,
I'm sorry, but I'm afraid I still don't understand the issue. In the screen shot you posted here, all the cells are green. I don't see any non-green cells. Unless you mean the cells on the far left. But it's actually pretty hard to tell what this screen shot is showing, since it's so small and clipped. I can't see the surrounding grid, so it's very hard to see what I am looking at here. It doesn't even appear to me that this is a CardView display.
Sorry for the inconvenience. I am attaching the complete screen shot the screen.The first part in the screen shot is Card(0) and 2nd part is Card(1).
As shown in the figure for the No: 2AA000301 there 18 green cells but shows only 14 cells in Card(1).
if i use
e.Layout.Bands(1).CardSettings.CardScrollbars = CardScrollbars.Horizontal i get a scroll bar for card(1) but as per users requirement i can't use a scroll bar for every such row. can you please provide me an alternative.
Hi,
I'm afraid that I still do not understand what I am looking at in this screen shot.
What exactly do you mean when you are refering to Card(0) and Card(1). I don't see anything in this screen shot that looks like a Card. Unless your cards only have 1 cell each. Is each green cell here an entire card? Is this grid's ViewStyleBand set to Horizontal so the cards show up on the right of the row? So the root band is regular rows and the second bands is in CardView with a single cell for each card?
When you refer to columns, I thought you meant columns in a band, but it sounds like you are talking about columns of cards, so I think that has added to my confusion.
If that's the case, then I can't see any reason why the scrolling would stop at 14... especially if you are able to arrow to the remaining cards. It may be a bug.
Hi Mike,
Thanks for your reply.
I hope you have got the problem this time. I had tried many solutions but unfortunately not able to solve the problem.
Were you able to find out any solution about the issue? Or do I need to submit it as a bug.
Any help would be greately appreciated.