如何获取GridView中的Button控件
今天遇到一个问题在前台界面的GridView1中嵌套着
                 <ItemTemplate>
                 <asp:Button ID="Btn1"   runat="server" Text="点击确认时间" 
                  CommandArgument='<%#((GridViewRow) Container).RowIndex %>' CommandName='<%#Eval("C_CaseId") %>' OnClick="Btn1_Click"  SkinID="send" />
                 </ItemTemplate>
后台的page_Load事件中
      Button btn1 = (Button)GridView1.FindControl("Btn1");
  btn1.Enable=false;
 //为什么我得到的btn1是null啊??
              
------解决方案--------------------
if (e.Row.RowType == DataControlRowType.DataRow)
{
   Button btn1 = (Button)e.Row.FindControl("Btn1");
   btn1.Enable=false;
}