There are 2 Template columns on WebDataGrid. I want to add rows prorgammatically on serverside and client side.
How Can I Add Row To WebDAtaGrid Programmatically?
Hello,
On the client-side, you can use something similar to that to add a new row programmatically with BLOCKED SCRIPT
var grid = $find("<%= WebDataGrid1.ClientID %>");grid.get_rows().add(["hello"]); // array of new cell valuesor an override:grid.get_rows().add({"ID":"hello"}); // object of columnKey:cellValue
On the server, unfortunately this is not supported yet (unbound mode). The only way is to add a new row to the datasource and then rebind the grid.
HTH,