小弟已经把表中的数据库显示到了DataGrid,想删除DataGrid中的数据,同时把数据库的数据也删除.高手赐教

解决方案 »

  1.   

    用一个<itemtemplate></itemtemplate>把key传到一个页面处理删除就行了
      

  2.   

    第一步:初始化删除命令和命令参数
    第二步:从DataGrid中获取当前行的index值
    在vs2003:
    DataGrid.CurrentRowsIndex
    在vs2005:
    DataGridView.CurrentRows.Index
    第三步:删除映射的DataTable中的行
    第四步:更新数据库你试一试吧
      

  3.   

    youzi8689你好.能留下你的QQ吗?