110,538
社区成员
发帖
与我相关
我的任务
分享
private void UpdateGridInfo(GridViewRowInfo currentRow)
{
if (currentRow == null)
{ return; }
this.radGridView1.CloseEditor();
currentRow.Cells["ProductName"].Value = this.radTextBoxProductName.Text;
currentRow.Cells["Manufacturer"].Value = this.radTextBoxManufacturer.Text;
urrentRow.Cells["Lining"].Value = this.radTextBoxMaterial.Text;
currentRow.Cells["Dimensions"].Value = this.radTextBoxDimension.Text;
if (this.radComboBox1.SelectedIndex != -1)
{
currentRow.Cells["SalesRepresentative"].Value = ((RadComboBoxItem)this.radComboBox1.SelectedItem).Text;
}
GridViewNewRowInfo newRowInfo = currentRow as GridViewNewRowInfo;
if (newRowInfo != null)
{ currentRow.InvalidateRow(); }
else {
((IEditableObject)this.radGridView1.CurrentRow.DataBoundItem).EndEdit();
}
}
private void UpdateGridInfo(GridViewRowInfo currentRow) { if (currentRow == null) { return; } this.radGridView1.CloseEditor(); currentRow.Cells["ProductName"].Value = this.radTextBoxProductName.Text; currentRow.Cells["Manufacturer"].Value = this.radTextBoxManufacturer.Text; currentRow.Cells["Lining"].Value = this.radTextBoxMaterial.Text; currentRow.Cells["Dimensions"].Value = this.radTextBoxDimension.Text; if (this.radComboBox1.SelectedIndex != -1) { currentRow.Cells["SalesRepresentative"].Value = ((RadComboBoxItem)this.radComboBox1.SelectedItem).Text; } GridViewNewRowInfo newRowInfo = currentRow as GridViewNewRowInfo; if (newRowInfo != null) { currentRow.InvalidateRow(); } else { ((IEditableObject)this.radGridView1.CurrentRow.DataBoundItem).EndEdit(); } }