Save Values

The grid does not seems to maintain it's state when the page it is on is submitted. If I enter values in the grid and hit a submit button the values are not saved and cannot be read. Only when I hit the save button on the grid do values that are maintained and readable.

I have EnableViewState set to true.

Is there a way to get values input into the grid to be readable via a submit button?

Hi,

The control provides a client-side function named "updateData" to do this work. When you want submit the grid data by another button on that page, you should call this function before the submit. for example:

[Javascript]

function beforeSubmit()

{

document.all("GridWeb1").updateData();

}

...

You may add a event handler for a button.

[C#]

button1.Attributes["onmousedown"] = "beforeSubment();";