Hi
I am having a problem with my Grid Detail Table.
I have a grid and in the grid i have 2 template column, in one there is a textbox and in the other there is a numeric textbox. when i click the save button the rows in the grid has to be saved. i have also set a detail table in the grid.To get the value of each template field the code i have used is
protected void btnSave_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text))
{
decimal SuppliedQuantity = Convert.ToDecimal(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text);
this.oFdrSuplInvDtls.Entity.SID_QTY = Convert.ToDecimal(SuppliedQuantity);
}
}
Now when i try to save the data in the grid with the detail table in the expanded form i am not getting the value in the template column.Hence am getting an error message. This happens only if the detail grid is in the expanded form. Could anybody help me with this
I am having a problem with my Grid Detail Table.
I have a grid and in the grid i have 2 template column, in one there is a textbox and in the other there is a numeric textbox. when i click the save button the rows in the grid has to be saved. i have also set a detail table in the grid.To get the value of each template field the code i have used is
protected void btnSave_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text))
{
decimal SuppliedQuantity = Convert.ToDecimal(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text);
this.oFdrSuplInvDtls.Entity.SID_QTY = Convert.ToDecimal(SuppliedQuantity);
}
}
Now when i try to save the data in the grid with the detail table in the expanded form i am not getting the value in the template column.Hence am getting an error message. This happens only if the detail grid is in the expanded form. Could anybody help me with this