I have made a dynamic grid and now i want to update my sp from the values in textbox in radgrid
how can i do that ..
when i try to access the value it alwas gives me the old value .
How can i get the new value ?
public void Update_OnbuttnClick(object sender, EventArgs e)
{
double total;
string id;
for (int OuterCol = 1; OuterCol < gridCntrl.Columns.Count; OuterCol++)
{
GridTemplateColumn templateColumn = new GridTemplateColumn();
//string templateColumnName = ds.Tables[0].Columns[OuterCol].ColumnName;
for (int inner = 1; inner < gridCntrl.Items.Count; inner++)
{
total = double.Parse((gridCntrl.Items[OuterCol].FindControl("xyz") as RadNumericTextBox).Value.ToString());
id = (gridCntrl.Items[OuterCol].FindControl("Petroleum") as RadNumericTextBox).Text.ToString();
}
}
}
how can i do that ..
when i try to access the value it alwas gives me the old value .
How can i get the new value ?
public void Update_OnbuttnClick(object sender, EventArgs e)
{
double total;
string id;
for (int OuterCol = 1; OuterCol < gridCntrl.Columns.Count; OuterCol++)
{
GridTemplateColumn templateColumn = new GridTemplateColumn();
//string templateColumnName = ds.Tables[0].Columns[OuterCol].ColumnName;
for (int inner = 1; inner < gridCntrl.Items.Count; inner++)
{
total = double.Parse((gridCntrl.Items[OuterCol].FindControl("xyz") as RadNumericTextBox).Value.ToString());
id = (gridCntrl.Items[OuterCol].FindControl("Petroleum") as RadNumericTextBox).Text.ToString();
}
}
}