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,