I need help to design below, is there an effective way to this with ultragrid
there are 115 values( 1 to 115), each value has it own related field. The catch to this is to divide to divide by the the total number of values. 115 / 5 = 23. You get 23. The customer wants to distribute evenly to create 5 colums, or should I say the table is already define with 5 columns, and wants to distribute all 23 values to each column, which is the each part. The customer do not want one row of 115 values, the customer, the customer is trying to prevent from using the scroll bar from the 115 values.
Now the tricky part that i have no clue of how to effectively design this is to associate a boolean feel to each value with the distribution of the 5 columns that contains 23 values each per column. They want to be able to check the boolean fields invidually and also at the top level have a way to check all fields.
Is there a way to effectively design this using the one gridview , one grid, I am going to show a print screen of what I am trying to accomplish, the picture will better describe.
I am goint to attach an image in the reply to show what i am trying to reach for the customer
Hello Keith,
Using the Mike`s suggestion, I made small sample for you using UltraListView. Could you please take a look at the attached sample. Please try to change the View property of UltraListView to see different behavior and which one is most suitable for you. Let me know if you have any questions
Regards
UltraTextEditor textColumn = new UltraTextEditor(); UltraCheckEditor BoolColumn = new UltraCheckEditor();
BoolColumn.Enabled = true; this.ultraGridTx.Controls.Add(textColumn); this.ultraGridTx.Controls.Add(BoolColumn);
int curentRow = 0; int cuurentColumn = 0; foreach (var key in UutDictionary.Keys) { foreach (var item in key) { if (curentRow == 30) { textColumn = new UltraTextEditor(); textColumn.Text = "Text" + cuurentColumn.ToString(); BoolColumn = new UltraCheckEditor(); BoolColumn.Text = "Check" + (cuurentColumn + 1).ToString(); BoolColumn.Enabled = true; this.ultraGridTx.Controls.Add(textColumn); this.ultraGridTx.Controls.Add(BoolColumn); curentRow = 0; cuurentColumn += 2; }
ultraGridTx.Layouts[cuurentColumn].Rows[curentRow] = (UltraGridRow)item; ultraGridTx.Layouts[curentRow].ValueType = typeof(bool); ultraGridTx.Layouts[curentRow].Value = item.Check; curentRow++; } } }
exactly, this is what i have been struggling with , can you show me a simple example using an ultralistview, there will always be five colums with values, and 5 related bool columns per value.
Hi,
It looks like you want to display the data in a snaking layout. There's no support for this in the UltraWinGrid.
You cuold try to determine the number of columns you need and build a datasource, but it would be very tough to determine how many columns and rows to use so that there are no scrollbars.
Perhaps the UltraListView might suit your needs better.
screen shot attach