void _tbl_ColumnChanged(object sender, DataColumnChangeEventArgs e) { IDataSetSource dss = _owner.DataSetStore; if (dss != null) { dss.SetFieldValueEx(_rowIdx, e.Column.ColumnName, e.ProposedValue); } }
public void OnInputTextChanged(ITextInput txt, string newText) { IDataSetSource dss = _owner.DataSetStore; if (dss != null) { string colName = null; string propName = txt.GetTextPropertyName(); if (txt.DataBindings != null) { foreach (Binding bd in txt.DataBindings) { if (string.CompareOrdinal(bd.PropertyName, propName) == 0) { colName = bd.BindingMemberInfo.BindingMember; break; } } } dss.SetFieldValueEx(this.DataRowIndex, colName, newText); } }