Hi There,
I've got a WebDataGrid that I'm using a Javascript function to insert a new, blank row to the grid when a button is pushed on my webform. I've got another button to do the post back. If any of the cells in the new row are blank, then a "Input string was not in the correct format" error is displayed before my post-back code executes. If all of the cells have values, then it executes my post-back code just fine.
Any ideas would be greatly appreciated!
Thanks,
Jeff
Hello, I am just checking about the progress of this issue. Did you solve your issue accordingly the information that I provided to you? Let me know if you need any further assistance.
Hi Ivaylo,
I'm sorry - didn't see your earlier response. Though I'm going to be working with a grid for a project this morning, so I'll review that earlier post and try some of the tips.
thank you,
I am checking about the progress of this issue. Please let me know if you need any further assistance on this.
Hello Jeff,
I tried but could not manage to recreate your scenario. I have tested the javascript code with several different Arrays in the CodeSample, with several different browsers. Please notice, that I have enabled CellEditing in order to edit the values once the empty row is inserted into the grid. Once the empty row is inserted, it is most likely that you will face the following scenario: The newly inserted row could need a unique DataKeyField, depending on your DataSource. If DataKeyField is not supplied a “Cannot insert the value NULL into column exception will fire”. I recommend this forum article, as it describes both scenarios: http://es.infragistics.com/community/forums/t/72287.aspx
You can also take in consideration the following documentation describing Setting Column Settings if neededhttp://help.infragistics.com/Help/NetAdvantage/ASPNET/2013.1/CLR4.0/html/WebDataGrid_Setting_Column_Settings_for_a_Behavior.html
Feel free to contact me if you have any questions regarding the mater.