I have a UltraWebGrid and a WebCombo on a column. I'm trying to display the country name and place the country id in the grid column. My webcombo shows both, the ID and the Description ignoring the hidden property in the Webcombo <column> section. Is this a bug in 2008?
<Columns>
<igtbl:UltraGridColumn BaseColumnName="CNTRY_ID" Hidden="True" IsBound="True" Key="CNTRY_ID">
<header caption="CNTRY_ID"></header>
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn BaseColumnName="CNTRY_NM" IsBound="True" Key="CNTRY_NM">
<header caption="Country Name">
<RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>
</header>
<footer>
</footer>
</Columns>
Thank you,
Ernesto.
I haven't worked with 2008 but the issue sounds familiar and if I'm not mistaken it is possible that the fix was to make sure that the webcombo's DropDownLayout BaseTableName attribute. Can you try it out? And maybe also try setting AutoGenerateColumns to false.
In fact every setting I have tried in the WebCombo Columns collection is ignored at run time. I have mine bound to an ObjectDataSource which I used to initialize the columns by setting the DataMember temporarily to the select method's returned datatable and then removed (because it won't work with it). After that I attempted to modify the columns.
I still haven't figured out any combination of properites that will allow Column collection settings to work.
Plus the examples have an example in the Grid section under WebCombo/WebCombo: http://samples.infragistics.com/2008.1/webfeaturebrowser/default.htmwhich clearly shows "FirstName" in the drop down header caption yet the source ASPX file (webcombo.aspx) shows that Caption for the column was set to "First Name" with a space, so even the examples demonstrate the problem.
DropDownLayout properties BaseTableName and AutoGenerateColumns don't help no matter what they are set to. The only way I have worked around this is to set all Columns properties in the InitializeLayout event handler i.e.
cmbSystems.Columns[0].Hidden = true;cmbSystems.Columns[1].Header.Caption = "System";cmbSystems.Columns[1].Width = new Unit(325);
This make Design Time less than useless not knowing which settings will work and which won't. Suggestion for the future. Disable or make properties disappear if they are dependent on other properties. This might be complex, but if not possible, at the very least add an explanation of property dependencies in the Visual Studio Property explanation window. Otherwise if there is no setting that makes this work, this should be logged as a glaring bug that should not have passed QA. I have seen similar design time problems in the WebGrid, but I'm not going to try to document them here.
Ditto! This did not work in 2007 either. Doesn't anyone ever scream loudly enough to get things like this fixed?
Got a lot of unanswered posts here in the forum so I would suggest you submit a support request than just posting here.
Again, a similar issue I had before was fixed by setting the BaseTableName attribute. Or there might be other elements in the pages that's messing with it.