예제 #1
0
        private void SetUnboundValue(GridViewRowInfo row, object value)
        {
            GridViewDataRowInfo gridViewDataRowInfo = row as GridViewDataRowInfo;

            if (gridViewDataRowInfo != null && this.Template != null)
            {
                this.Template.ListSource.NotifyItemChanging(row, this.column.Name);
            }
            row.Cache[this.column] = value;
            if (gridViewDataRowInfo != null && this.Template != null)
            {
                this.Template.ListSource.NotifyItemChanged(row, this.column.Name);
            }
            if (this.Template.IsUpdating)
            {
                return;
            }
            row.InvalidateRow();
        }
예제 #2
0
 public GridViewHierarchyRowInfo(GridViewDataRowInfo row)
     : this(row.ViewInfo)
 {
     this.Cache = row.Cache;
 }