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
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.
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.
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++; } } }
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
Have you been able to resolve your issue ? Let me know if you have any questions.
I ran the program, its exactly what I wanted , I havent been able to incorporated it yet in the program, I want to get everything in place with the software then come back and added it later, I try not to get caught up on the nice to have things, I also posted a forum about formatting the datetime picker, when time permits, can you review if possible. I am trying to format the datetime picker "YYYYMMDD:hhmmss"
Thanks for your response. Let me know if you have any questions regarding this forum thread. Meanwhile could you please check your UltraDateTimeEditor`s thread. I already post my answer.
There are different approaches, but maybe the easiest way, if you want to see all your own forum threads, just click at your avatar. If you want to see all my thread, just click at my avatar.
How to see the forums you posted on the site, I normally just click the link by email, but I dont see the link in my email