Hi all. This one might be a little hard for me to explain, I'll try my best.
I have an UltraWebGrid with some of it's ColumnEditors set as Custom. Then I set the EditorControlID to a WebCombo. The problem here is that I'm trying to populate my WebCombo by first reading the values I have for the cells belonging to that column and then querying the DB to get the 'text field' related to ta ID value within the cell.
What I'd like to know is what could I do so that the grid would display the text field that I have set in the WebCombo working as an editor for that column. So far, I have the ID displayed in the cell and when I enter to edit it, the combo is shown and the text displayed is actually the Description field. I'd like the grid to show this field instead of the related ID.
My guess is that it has to do with the order of the events that are being fired. In this case I have to populate the combo after DataBinding the grid as I have to get those values to then populate the combo and set this populated control as the EditorControl.
Hope my post is not too messy. Thanks for your help.
Did you find a solution for this.?
I have a similar problem and definately need help. I used cascading webcombos in my ultrawebgird(2009 vol 1). I had no problem of saving data, but the data cannot be displayed properly. Some of the dependent webcombos just display the value not the text. It looks like some of cells cannot bind to the webcombos.
I have specified the DataSourceID, dateTextField. dataValueField for webcombos. I also checked the datatype of webcombo and the data in the grid, they are all int type.
Thanks.
I've been fighting this problem for a day now and thanks to Vince's post here I fixed my problem. I had a column in a grid which was an int but since I was binding the grid to the dataset in code it didn't set the datatype of the column and it defaulted to a string. That column had the editor control set to a dropdown list where the datavalue field was an int and the dropdown list would only show when I clicked on the cell. Once I set the datatype of the grid column explictly to an int the dropdown now shows all the time. Thanks Vince, and maybe the ultrawebgrid should throw an exception when the editor control's datatype doesn't match the datatype of the column you're binding to.
And this is actually one of the final touches for the first version of this project to go out to the wild world, that's why I'm more than glad and thankful for your help. There's only one more glitch to solve that I've been wandering about for a little while but I'll see what I can do and if theres no luck, I'll be oon asking for your great help once again :-)
Thanks and keep doing such a great job ;-)
I'm glad to have helped! That scenario is one that can trip people up quite easily, and it's not easily noticed.