Banging my head against the wall on this one - I have to be missing something obvious but cannot see it.
I'm using ValueList on two columns in a UltraWinGrid with the Column Style set to DropDownList. The bound table for these columns/fields is Int32. I am creating the value list from an enumeration, but have also tried a simple ValueList.Add(1,"Some Item Description") and get the same results. Any time I select an item from the list it gives me the error "Unable to convert from 'System.String' to 'System.Int32'". It appears to think that the DropDownList data is string instead of integer. I've tried explicitly declaring as int by using ValueList.Add(CInt(myvalue),"Some Text...") but this doesn't work either. If I change the bound table column data type to string then the e.Cell.Value (on AfterCellUpdate) gives me the list display value. So it appears that it's binding to the display/text value rather than to the integer value, but I'm not sure where to change this (I did find the ValueList.DisplayStyle property and set it to "DisplayText") but this hasn't had any effect.
I'm sure this is something simple that I've been starting at too long to see!
Getting another error posting again now on the other accidental posts:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CommunityServer.Components.CSException: Error in the application.Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[CSException: Error in the application.] CommunityServer.Data.ForumsSqlDataProvider.AddPost(ForumPost post, Int32 userID) +3527 CommunityServer.Discussions.Components.Posts.AddPost(ForumPost post, User postAuthor) +44 CommunityServer.Discussions.Controls.CreateEditForumPostForm.SavePost(Thread post) +115 Infragistics.CommunityServer.Common.Controls.CreateEditForumPostFormExtended.SavePost(Thread post) in c:\Work\2\379\Sources\RELEASE\Community Server\V1.0\Infragistics.CommunityServer.Common\Controls\CreateEditForumPostFormExtended.cs:19 CommunityServer.Discussions.Controls.CreateEditForumPostForm.ᐁ(Object , EventArgs ) +196 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
Sorry for the multiple posts on the same topic - each time I submitted yesterday the Infragistics site reported an error (and I tried on both IE and Chrome) so I hadn't realized that it had actually posted successfully. For any other viewers, please see the thread that Boris refers to above.
Hello,
I believe that this topic has already been discussed in the following forum thread:
http://ko.infragistics.com/community/forums/t/72908.aspx.
Please do not hesitate to contact me if you need any additional assistance.