Infragistics.Win.UltraWinDataSource.UltraDataSource ultraDataSourcePages; string strColumnCaption1 = "ColumnX"; string strColumnCaption2 = "ColumnY"; Infragistics.Win.UltraWinDataSource.UltraDataColumn ultraDataColumn1 = new Infragistics.Win.UltraWinDataSource.UltraDataColumn(strColumnCaption1); Infragistics.Win.UltraWinDataSource.UltraDataColumn ultraDataColumn2 = new Infragistics.Win.UltraWinDataSource.UltraDataColumn(strColumnCaption2); ultraDataSourcePages.Band.Columns.AddRange(new object[] { ultraDataColumn1, ultraDataColumn2}); Infragistics.Win.UltraWinDataSource.UltraDataRow dataRow = this.ultraDataSourcePages.Rows.Add(); dataRow[strColumnCaption1] = 10; dataRow[strColumnCaption2] = 20;//Throwing error
Exception:Key not foundParameter name: key at Infragistics.Shared.KeyedSubObjectsCollectionBase.GetItemUsingCachedKeys(String key, Boolean throwException) at Infragistics.Shared.KeyedSubObjectsCollectionBase.GetItem(String key) at Infragistics.Win.UltraWinDataSource.UltraDataColumnsCollection.get_Item(String columnKey) at Infragistics.Win.UltraWinDataSource.UltraDataRow.set_Item(String columnKey, Object value) at AddGridRow(Object page)
Hi Kalaiarasu,
Thank you for posting in our forums.
This looks like an old issue that is resolved in the latest service release of 12.1 and higher. My suggestion is to upgrade your application and you should no longer face this exception.
Please let me know if you have any additional questions.
Hello Kalaiarasu,
I am just checking about the progress of this issue. Let me know if Dimitar's suggestion worked for you or if you need our further assistance.
Thank you for using Infragistics Components.
Hi,
I will let you know once I upgrade my code to latest version of Infragistics.
Thanks,
Kalaiarasu.
Thank you for the update.
We will be monitoring this thread, so let us know if the issue is fixed after you have upgraded the product.
I am looking forward to hearing from you.