I have a webdatagrid that has two template columns. Each of the columns contains a web control, one is adropdownlist and the other is a webdatepicker.
The dropdown list is populated by a sqldatasource object. I would like to be able to click a button that would add a new row to the webgrid. When the new row is added, it will include both the dropdown list fully populatede, but with no selection and a webdatepicker that is also not selected.
I would prefer this in vb.net. Can anyone help?
Hi again,
I am still trying to write code for this myself. I am new to Infragistics, so please bear with me.
I have been trying to use the JavaScript method to add a row, namely
);
//Create an array of cell values for all values that cannot be null.
//add row.
grid.get_rows().add(row);
Whenever I select the button that fires this code, I see an error message:
Microsoft JScript runtime error: 'null' is null or not an object
As far as I can see, I have included all the values required for the array. I have also checked all of the server controls on my page and ensured that I have included runat="server" with them.
I am wondering if the problem has something to do with the fact that I am adding rows to a template instead of just a grid control?
Have moved this thread to the WebDataGrid forum
Hello,
This is the Windows Presentation Foundation XamDataGrid's forum. If you want to receive better support to your questions, it is better to post this in the WebDataGrid's forum.