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
70
Client Side WebGrid Get Cell Value
posted

 

I can't seem to figure out how to get the value of a specific cell by the column name.... I'm trying to populate a new grid row with some default data that the user entered from the previous row.  The function below would work (not done but it get's me the cell value) however, if I am getting the cell's value based on it's index in the row and the user re-arranges the rows in the grid by dragging and dropping it changes the index value of the cell i want to use.  Thus, I need to use the column name.

Any help is appreciated!

function UwgChannels_AfterRowInsertHandler(gridName, rowId, index)

{

var grid = igtbl_getGridById(gridName);

var lastRow = grid.Rows.getRow(grid.Rows.length - 1);

alert(lastRow.getCell[4].getValue());

}