Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Insert a row at the top of a WebDataGrid using Javascript
posted

Hi,

Looking at the documentation I see how to add a row to a WebDataGrid, but is there a function or methodology for inserting a row to the top of the WebDataGrid?

Here's how to add a row in Javascript as reference:

var grid = $find("WebDataGrid1");

// Create array of cell values for all values that cannot be null.
var row = new Array("CustomerID", "CompanyName");

// Add row.
grid.get_rows().add(row);