Hi. I'm working with a winGrid and I have set some columns to be edited with embedded comboboxes, but when I drag one of this columns to the GroupBy area, the elements uses to 'title' the tree are the IDs and not the Description string displayed in the combos. Is there some configuration in the grid to achieve this? If not, which event should I be handling or what should I do to achieve this functionality? Thanks a lot.
This sounds like a bug to me. And I beleive it was fixed recently. Are you using the latest Hot Fix?
Hi, Mike and Torrey. Thanks for your replies. So far I have been able to test Torrey's solution but I'm not sure how could I retrieve the description from the combo's items for every group row. I'm not sure about the hot fix but I think we're not updated, though I don't know if updating the version would be allowed here anyways since we work several projects with the same version and (for internal control purpouses) updating this would mean update all the other projects.. So, thinking about using row.description, is there a way to get a reference to the related item from the combo that corresponds to the ID used for the group row?
Thanks again.
Well, assuming that the ValueList is applied to the entire column, what you would have to do is call column.ValueList.GetText and pass in the Value of the GroupByRow.
Hi Mike. Thanks again for your reply. I guess I didn't explain what my 'little trouble' is now.. I'm handling the InitializeGroupByRow event, so I have access to -object sender- and -InitializeGroupByRowEventArgs e- and I can't seem to find a reference to which column is firing the event and then get the valuelist for that column as you suggested. This is where my problem lies.. hopefully you'll be able to help me quite easily, I'm just not that into the winGrid so far :-)
Thanks once again.
The event args give you the GroupByRow. The GroupByRow has a Column property - which is the column that it is grouping by, and a Value property, whicih is the value of that column in the group.
It works now. I didn't actually find a way to get the text from any reference I had from the event arguments so I had to re-query the database asking for the particular ID; anyway it's working :)
Thanks a lot for your help, Mike and Torrey