selectedRow.Update() Exception

Tags :
  • New Discussion
  • New Question
  • New Product Feedback


I am attempting to set some default values on the client side when a new row is added to a bound WebGrid. However, when I update the row I get an error message. The cell and DB column behind, that I am writing to, is a string. If I type in the very same string, rather than setting it in the script, it works. The exception occurs during selectedRow.Update().

Hope you can help:

Client script:
function OnBeforeAdd(controlId, tblName, rowIndex, rowEl) {

var WebGrid1 = ISGetObject(controlId);
var selectedRow = WebGrid1.GetSelectedObject().ToRowObject();
var cells = selectedRow.GetCells();

return true;

Error message: (see also attached screendump)

Server Error '/' Application

Input String was not in a correct format


1 attachment
All times are GMT -5. The time now is 7:47 PM.
Previous Next