【029】PostBack事件注册
侧边栏壁纸
  • 累计撰写 70 篇文章
  • 累计收到 2 条评论

【029】PostBack事件注册

竹秋廿九
2025-04-08 / 0 评论 / 16 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2025年04月17日,已超过293天没有更新,若内容或图片失效,请留言反馈。

private void RegisterGridCellDataChangedPostBack()
{
    AssociationControl assocControl = new AssociationControl();
    assocControl.SourceServerControl = this.DataGrid8;
    assocControl.SourceControl.EventName = "OnCellDataValueChanged";

    //针对数量和价格这两个列的变化
    ((IUFClientAssoGrid)assocControl.SourceControl).FireEventCols.Add("ItemQty");
    ((IUFClientAssoGrid)assocControl.SourceControl).FireEventCols.Add("Price");

    CodeBlock cb = new CodeBlock();
    UFWebClientGridAdapter gridAdapter = new UFWebClientGridAdapter(this.DataGrid8);
    gridAdapter.IsPostBack = true;
    gridAdapter.PostBackTag = "OnCellDataValueChanged";
    cb.TargetControls.addControl(gridAdapter);
    assocControl.addBlock(cb);
    UFGrid itemGrid = this.DataGrid8 as UFGrid;
    itemGrid.GridCustomerPostBackEvent += new GridCustomerPostBackDelegate(GridCellOnChanged_DoCustomerAction_Grid);

}
0

评论

博主关闭了当前页面的评论