困扰了多月的问题!在ASPxGridView里有一模板列,我绑定的是ASPxHtmlEditor控件,当添加完ASPxHtmlEditor里内容后,点击更新按钮如何把数据存入数据库?代码怎么写,谢谢指教!

解决方案 »

  1.   

    RowCommand里面写代码。
     if (e.CommandName.ToString() == "Update")
                {
                    int index = Convert.ToInt32(e.CommandArgument);
                    GridViewRow row = GridView1.Rows[index];
                    ASPxHtmlEditor editor= (ASPxHtmlEditor)row.FindControl(("ASPxHtmlEditor1"));//大概像这样,没有测试。               更新操作(editor.innerText);
                }
      

  2.   

    2楼的,我没看懂,CommandName是什么
      

  3.   

    2楼说的是VS自带的那个Grdiview,lz说的是一个第三方控件中的吧
    Commandname可以自己随意设置,察看下MSDN吧