Hi there
I have a grids that 10 rows and 18 columns and 10 columns of them are setting like this so they are in edit mode.
Now ... i have a button outside this grid and just want to save the value of each edited column by doing this:
But I don't get any values of edited columns. Any ideas? Unless is there any other methods to set the editable mode.
Thanks
I have a grids that 10 rows and 18 columns and 10 columns of them are setting like this so they are in edit mode.
| protected void Page_PreRender(object sender, System.EventArgs e) |
| { |
| if (!this.IsPostBack) |
| { |
| for (int i = 0; i < this.radgrdTenderTariffTenderTariff.MasterTableView.Items.Count; i++) |
| { |
| this.radgrdTenderTariffTenderTariff.MasterTableView.Items[i].Edit = true; |
| } |
| this.radgrdTenderTariffTenderTariff.MasterTableView.Rebind(); |
| } |
| } |
Now ... i have a button outside this grid and just want to save the value of each edited column by doing this:
| protected void bttnSave_Click(object sender, EventArgs e) |
| { |
| foreach (GridEditableItem editedItem in radgrdTenderTariffTenderTariff.EditItems) |
| { |
| //string test = item.OwnerTableView.DataKeyValues[item.ItemIndex]["SiteCode"].ToString(); |
| //GridEditableItem itemToEdit = (item.OwnerTableView.EditMode == GridEditMode.InPlace) ? |
| // (GridEditableItem)item : (GridEditableItem)item.EditFormItem; |
| string rate8 = editedItem["Rate8"].Text; |
| } |
| } |
But I don't get any values of edited columns. Any ideas? Unless is there any other methods to set the editable mode.
Thanks