我选择dropdownlist里的一项,然后使datagrid按照某种要求重新绑定,求相应代码,谢谢

解决方案 »

  1.   

    将DataGrid的数据源重新绑定就行了
      

  2.   

    dropdownlist属性AutoPostback设为true;
    private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
            {
                //重新绑定DataGrid
            }
      

  3.   

    把dropdownlist.SelectedValue作为查询条件,然后根据其值的变化绑定datagrid
      

  4.   

    DropDownList 中的AutoPost = true
      

  5.   

    dropdownlist属性AutoPostback设为true;
    private void DropDownList1_SelectedIndexChanged(object sender, System.EventArgs e)
            {
                //重新绑定DataGrid
            }