Hello,
We use an Ultragrid to display data. We try o accomplish that one of the columns behaves as a list off options, which can be selected separatly. So far so good.The problem i ran into is, when the grid is loading the data, the actual checked data is allready available. So the user must have to possibility to change this option list, but the check boxes should allready be prefilled.I can't get this right.
I added a solution to demonstrate the problem.|I tried to accomplish this with an UltraCombo and and UltraComboEditor, but both won't work for me.Maybe i took the wrong path for this solution.
Do you have any suggestions to solve this problem ?
I'm afraid I had some trouble understanding exactly what you want to accomplish here, so forgive me if I am way off...
Generally speaking, the way you get the checkboxes to be "prefilled" is to assign an object array to the cell's value, with each element in that array corresponding to one of the items that you want to appear checked. So in your sample, you would set the value of a cell in the 'Choose' column to an array containing the integer values 1, 2, and 3, and then when the dropdown for that cell appears, the items with those values will be checked.
Again, if I completely missed the mark please repost with details about which checkboxes you want to prefill, and we will try to help.
Hello Brian,
I try to explain by an example.
I have a datable in my database which has the selected options from a list. (dtSelected)On the other hand i have a table with all possible options (dtBranches)My actual data is an dtPictures w
I would like to display all these options in a dropdown list (so the dtBranches), and pre-select the selected options.
dtBranchesid | description1 | Branch 12 | Branch 23 | Branch 3
dtSelectedidPic | idSelectedBranch 1 | 11 | 32 | 23 | 14 | 14 | 24 | 3
So now i have a ultragrid with other data rows And for each row i want to select different branches (1 or more) per row.
dtPicturesidPic | Picture | Desription | Type | Branches1 | pic1 | First | jpg | branch 1 / branch 32 | pic2 | Sec | bmp | branch 23 | pic3 | Third | jpg | branch 1 4 | pic4 | Fourth | png | branch 1 / branch 2 / branch 3
Could you give me some code to do this in an ultragrid. So that my ultragrid displays 4 rows, and when i select the Branch column i have the possibilty to select the Branches.And of course the Branches should be "prefilled" as described.
Kind regards
René
see attached
This example solved my problem.
Thx.