Hi, I am new to Telerik and am currently developing a program for my company. I click on the "Click here to add a new row" button on the top and input the values for each column. Then I want to have the user press a "save" button and save these values to the Oracle database. I am unable to get the values for each column. I've came across many versions of this problem throughout my search, but I want the most up to date one that would allow me to get the new row values that I entered from "Click here to add a new row". Thanks! Both dr and currentRow.value return null.
private void btSave_Click(object sender, EventArgs e)
{
GridViewRowInfo dr = this.gvUser.GridViewElement.CurrentRow as GridViewRowInfo;
GridViewNewRowInfo currentRow = dr as GridViewNewRowInfo;
if (currentRow != null)
{
string test = dr.Cells[1].Value.ToString();
test = currentRow.Cells[1].Valiue.Tostring();
test = dr.Cells[2].Value.ToString();
test = dr.Cells[3].Value.ToString();
test = dr.Cells[4].Value.ToString();
test = dr.Cells[5].Value.ToString();
}
}