CheckBox Checked state inside gridview

前端 未结 2 1956
眼角桃花
眼角桃花 2021-01-29 03:25

I have a simple gridview

            

        
相关标签:
2条回答
  • Try this:

    Check Wheather you have put your code for binding data to GridView in

    If (!IsPostBack)
    {
         //Code for Binding Data to GridView 
    } 
    
    0 讨论(0)
  • 2021-01-29 04:01

    my fault.i haven't done the following

      if (!Page.IsPostBack)
                {
    
                    Binddata();//Bind data to gridview
                }
    

    previously Binddata() method was not inside

    if (!Page.IsPostBack)

    which was causing the issue

    0 讨论(0)
提交回复
热议问题