Forum  Core :: SDK (Vi...  Bug Reports  Input string was not in a correct format
Previous Previous
 
Next Next
New Post 12/6/2011 12:26 AM
  hgcheong
3 posts
No Ranking


Input string was not in a correct format  

I received the error Input string was not in a correct format whenever I resized the Listview or DatagridView column width and click on the header to sort. This happens when the browser is not viewed at 100% zoom in both Chrome or Firefox.

You can replicate the error by

1)Going to the live catalog at Gizmox->Controls->Data Controls->Sample1->

2)Change your zoom to say 120%

3)Resize the Listview Column Width

4)Click on the ListView Column Header to Sort.

In my own test project the details of the error are shown below.

[FormatException: Input string was not in a correct format.] System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9594283

System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119

System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) +39

System.Int16.Parse(String s) +23 Gizmox.WebGUI.Forms.ColumnHeader.FireEvent(IEvent objEvent) +173 Gizmox.WebGUI.Forms.RegisteredComponent.Gizmox.WebGUI.Common.Interfaces.IEventHandler.FireEvent(IEvent objEvent) +59 Gizmox.WebGUI.Server.Context.ProcessEvent(Int64 lngTimeMarker, IEvent objEvent) +319 A.c4d3cdb893b7f640a5aa2a40bfe2211b1.ProcessRequest(HostContext objHostContext) +1694

I am using Gizmox VWG_Express_Studio_6.4.0_Release_c_NET4.0 on Windows XP Pro and VWD Developer 2010. Browser is Chrome(15.0.874.121 m) and Firefox(8).

 
New Post 12/6/2011 12:49 AM
  Visualizer
665 posts
1st Level Poster




Re: Input string was not in a correct format  

I can confirm this error, there are more situations where it appears.

It has indeed todo with the zoom level if it's not 100%.

This is quite anoying because our error handler catches these errors and they appear in our error log but the user doesnt see any error message.

Tom

 

 
New Post 12/6/2011 2:14 PM
  palli
11838 posts
1st Level Poster




Re: Input string was not in a correct format  

Hi Hgcheong,

Welcome to Visual WebGui

This same problem was reported for both DataGridView and ListView under certain curcumstances, which turned out to be related the the resizing of the columns of those controls. What complicated things even more was that this also turned out to be a cultural issue, where it was not reproducable in all cultures.

You can find the corresponding tracker entries here and here. Both have already been fixed.

Please view the description of those entries and see if they fit your problem.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 12/6/2011 2:14 PM
  palli
11838 posts
1st Level Poster




Re: Input string was not in a correct format  

Hi Tom,

Please see my reply to Hgcheong.

If you don't agree, please let us know.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 12/6/2011 9:37 PM
  hgcheong
3 posts
No Ranking


Re: Input string was not in a correct format  

Good to know that it has been fixed in 6.4d. At the moment we can disable the option to AllowUserToResizeColumns in datagridview but unfortunately this is not available in the listview. Using the code from the link here to disable resizing of listivew column does not work either, btw thanks Tom for confirming this issue.

 

 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Bug Reports  Input string was not in a correct format
Assessment Bottom
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS