GridView RowCommand Not Firing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AG

    GridView RowCommand Not Firing

    I have a gridview that I bind to a List(of Type) at runtime.
    Not using a datasource control.
    The gridview has a template column with an imagebutton whose commandname is
    set to 'Delete'.
    The footer template has an commandbutton with the commandname set to
    'Insert'.
    Both buttons cause postback, however the RowCommand event does not fire.

    How can I get the rowcommand to fire?

    TIA
    --

    AG
    Email: discuss at adhdata dot com




  • PeterKellner

    #2
    Re: GridView RowCommand Not Firing

    On Wed, 11 Oct 2006 09:48:51 -0400, "AG"
    <NOSPAMa-giam@newsgroups .nospamwrote:
    >I have a gridview that I bind to a List(of Type) at runtime.
    >Not using a datasource control.
    >The gridview has a template column with an imagebutton whose commandname is
    >set to 'Delete'.
    >The footer template has an commandbutton with the commandname set to
    >'Insert'.
    >Both buttons cause postback, however the RowCommand event does not fire.
    >
    >How can I get the rowcommand to fire?
    >
    >TIA
    Here is some sample code that does work with the linkbutton.

    <asp:GridView ID="GridViewAva ilablePictures" runat="server"
    AutoGenerateCol umns="False" DataKeyNames="i d"
    DataSourceID="O bjectDataSource AvailablePictur es"
    OnRowCommand="G ridViewAvailabl ePictures_RowCo mmand">
    <Columns>
    <asp:TemplateFi eld>
    <ItemTemplate >
    <asp:LinkButt on ID="LinkAssignB utton" runat="server"
    CommandName="As sign"
    Text="Assign Picture To Session" Visible="true">
    </asp:LinkButton>
    <br />
    <asp:Label ID="Label1" runat="server" Text='<%#
    Bind("FileName" ) %>'></asp:Label>
    </ItemTemplate>
    </asp:TemplateFie ld>
    <asp:TemplateFi eld HeaderText="id" InsertVisible=" False"
    SortExpression= "id">
    <ItemTemplate >
    <asp:Image ID="Image1" runat="server"
    ImageUrl='<%# "~/DisplayImage.as hx?sizex=120&pi ctureid=" + Eval("id")
    %>' />

    </ItemTemplate>
    </asp:TemplateFie ld>

    <asp:BoundFie ld DataField="Desc ription"
    HeaderText="Des cription" SortExpression= "Descriptio n"
    Visible="False" />

    </Columns>
    </asp:GridView>
    Peter Kellner

    Comment

    • AG

      #3
      Re: GridView RowCommand Not Firing

      Peter,

      Thanks for the quick reply.
      If I use a datasource control as in your sample, the rowcommand event will
      fire.
      I am not using a datasource control, but setting the datasource of the
      gridview to a List(of Type) at runtime.

      --

      AG
      Email: discuss at adhdata dot com



      "PeterKelln er" <pkellnernews@7 3rdstreet.comwr ote in message
      news:mvvpi2hba0 helk3u1hpd47h80 5l2193thf@4ax.c om...
      On Wed, 11 Oct 2006 09:48:51 -0400, "AG"
      <NOSPAMa-giam@newsgroups .nospamwrote:
      >
      >>I have a gridview that I bind to a List(of Type) at runtime.
      >>Not using a datasource control.
      >>The gridview has a template column with an imagebutton whose commandname
      >>is
      >>set to 'Delete'.
      >>The footer template has an commandbutton with the commandname set to
      >>'Insert'.
      >>Both buttons cause postback, however the RowCommand event does not fire.
      >>
      >>How can I get the rowcommand to fire?
      >>
      >>TIA
      >
      Here is some sample code that does work with the linkbutton.
      >
      <asp:GridView ID="GridViewAva ilablePictures" runat="server"
      AutoGenerateCol umns="False" DataKeyNames="i d"
      DataSourceID="O bjectDataSource AvailablePictur es"
      OnRowCommand="G ridViewAvailabl ePictures_RowCo mmand">
      <Columns>
      <asp:TemplateFi eld>
      <ItemTemplate >
      <asp:LinkButt on ID="LinkAssignB utton" runat="server"
      CommandName="As sign"
      Text="Assign Picture To Session" Visible="true">
      </asp:LinkButton>
      <br />
      <asp:Label ID="Label1" runat="server" Text='<%#
      Bind("FileName" ) %>'></asp:Label>
      </ItemTemplate>
      </asp:TemplateFie ld>
      <asp:TemplateFi eld HeaderText="id" InsertVisible=" False"
      SortExpression= "id">
      <ItemTemplate >
      <asp:Image ID="Image1" runat="server"
      ImageUrl='<%# "~/DisplayImage.as hx?sizex=120&pi ctureid=" + Eval("id")
      %>' />
      >
      </ItemTemplate>
      </asp:TemplateFie ld>
      >
      <asp:BoundFie ld DataField="Desc ription"
      HeaderText="Des cription" SortExpression= "Descriptio n"
      Visible="False" />
      >
      </Columns>
      </asp:GridView>
      Peter Kellner
      http://peterkellner.net

      Comment

      • Steven Cheng[MSFT]

        #4
        Re: GridView RowCommand Not Firing

        Hello AG,

        Based on my experience, no matter we bind GridView through
        DataSourceContr ol or normal data object collection, the RowCommand and
        other Row based postback event(RowUpdati ng, RowEditing .... ) should work.
        For your scenario, I think it is likely a page or control specific issue.
        Here is a smiple test page with a GridView that bind to a custom class
        Array, and I use a submit button and image button in the TemplateColumn,
        also a submit button(with CommandName="In sert") in the footer template, all
        these buttons can trigger the RowXXX event correctly. I've included the
        complete page's aspx and codebehind source below, you can test it on your
        side to see whether it works.



        ==============a spx============ ===
        <body>
        <form id="form1" runat="server">
        <div>
        <asp:GridView ID="GridView1" runat="server"
        AutoGenerateCol umns="false" OnRowCommand="G ridView1_RowCom mand"
        OnRowDeleting=" GridView1_RowDe leting" OnRowEditing="G ridView1_RowEdi ting"
        ShowFooter="Tru e">
        <Columns>
        <asp:BoundFie ld DataField="Cate goryID"
        HeaderText="Cat egoryID" />
        <asp:BoundFie ld DataField="Cate goryName"
        HeaderText="Cat egoryName" />
        <asp:BoundFie ld DataField="Desc ription"
        HeaderText="Des cription" />
        <asp:TemplateFi eld HeaderText="Tem plateField">
        <ItemTemplate >
        <asp:Button ID="btnEdit" runat="server" Text="Edit"
        CommandName="Ed it" />
        <asp:ImageButto n ID="imgBtn" runat="server"
        ImageUrl="http://wcf.netfx3.com/Themes/default/images/logo.gif"
        CommandName="Ed it" />
        </ItemTemplate>
        <FooterTemplate >
        <asp:Button ID="btnInsert" runat="server" Text="Insert"
        CommandName="In sert" />
        </FooterTemplate>
        </asp:TemplateFie ld>
        <asp:CommandFie ld ShowDeleteButto n="True" />
        </Columns>
        </asp:GridView>

        </div>
        </form>
        </body>
        =============== =============

        =========code behind========= =====
        public partial class dataaccess_Cust omVOGridView : System.Web.UI.P age
        {
        protected void Page_Load(objec t sender, EventArgs e)
        {
        if (!IsPostBack)
        {
        BindGrid();

        }

        }

        private void BindGrid()
        {
        CategoryVO[] categories = new CategoryVO[10];

        for (int i = 0; i < categories.Leng th; i++)
        {
        CategoryVO vo = new CategoryVO();
        vo.CategoryID = i + 1;
        vo.CategoryName = "Category_" + vo.CategoryID;
        vo.Description = "Descriptio n of " + vo.CategoryName ;

        categories[i] = vo;
        }

        GridView1.DataS ource = categories;
        GridView1.DataB ind();
        }
        protected void GridView1_RowCo mmand(object sender,
        GridViewCommand EventArgs e)
        {

        Response.Write( "<br/>GridView1_RowC ommand: " + e.CommandName);


        }
        protected void GridView1_RowDe leting(object sender,
        GridViewDeleteE ventArgs e)
        {
        Response.Write( "<br/>GridView1_RowD eleting " + e.RowIndex);
        }
        protected void GridView1_RowEd iting(object sender,
        GridViewEditEve ntArgs e)
        {
        Response.Write( "<br/>GridView1_RowE diting " + e.NewEditIndex) ;
        }
        }
        =============== ===========

        =========custom class========== =====
        public class CategoryVO
        {
        private int _id;
        private string _name;
        private string _description;


        public CategoryVO()
        {

        }

        public CategoryVO(int id, string name, string description)
        {
        _id = id;
        _name = name;
        _description = description;
        }


        public int CategoryID
        {
        get { return _id; }
        set { _id = value; }
        }

        public string CategoryName
        {
        get { return _name; }
        set { _name = value; }
        }

        public string Description
        {
        get { return _description; }
        set { _description = value; }
        }


        }
        =============== =============== ===

        Please feel free to let me know if you have any further questions or new
        finding.

        Sincerely,

        Steven Cheng

        Microsoft MSDN Online Support Lead



        =============== =============== =============== =====

        Get notification to my posts through email? Please refer to
        Gain technical skills through documentation and training, earn certifications and connect with the community

        ications.



        Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
        where an initial response from the community or a Microsoft Support
        Engineer within 1 business day is acceptable. Please note that each follow
        up response may take approximately 2 business days as the support
        professional working with you may need further investigation to reach the
        most efficient resolution. The offering is not appropriate for situations
        that require urgent, real-time or phone-based interactions or complex
        project analysis and dump analysis issues. Issues of this nature are best
        handled working with a dedicated Microsoft Support Engineer by contacting
        Microsoft Customer Support Services (CSS) at
        http://msdn.microsoft.com/subscripti...t/default.aspx.

        =============== =============== =============== =====



        This posting is provided "AS IS" with no warranties, and confers no rights.


        Comment

        • AG

          #5
          Re: GridView RowCommand Not Firing

          Steven,

          Thanks for the reply.
          I have tracked down my problem.
          It has to do with master pages.

          In a normal page, your sample works fine.

          I put it in a content control on a content page.
          The RowCommand for the template column did not fire.
          It DID fire for the delete column, which is NOT a template column.
          This is what was confusing me.

          Bottom line is that the ContentPlaceHol der of the masterpage had viewstate
          turned off.
          Once I turned it back on, all the events fired.

          On another note.
          I like the idea of using the footer of the gridview to add a new record.
          However, if there is no data, the gridview does not render at all.
          Is there any way to render the header and footer if there is no data for the
          gridview?

          --

          AG
          Email: discuss at adhdata dot com



          "Steven Cheng[MSFT]" <stcheng@online .microsoft.comw rote in message
          news:9VL$UDb7GH A.2336@TK2MSFTN GXA01.phx.gbl.. .
          Hello AG,
          >
          Based on my experience, no matter we bind GridView through
          DataSourceContr ol or normal data object collection, the RowCommand and
          other Row based postback event(RowUpdati ng, RowEditing .... ) should work.
          For your scenario, I think it is likely a page or control specific issue.
          Here is a smiple test page with a GridView that bind to a custom class
          Array, and I use a submit button and image button in the TemplateColumn,
          also a submit button(with CommandName="In sert") in the footer template,
          all
          these buttons can trigger the RowXXX event correctly. I've included the
          complete page's aspx and codebehind source below, you can test it on your
          side to see whether it works.
          >
          >
          >
          ==============a spx============ ===
          <body>
          <form id="form1" runat="server">
          <div>
          <asp:GridView ID="GridView1" runat="server"
          AutoGenerateCol umns="false" OnRowCommand="G ridView1_RowCom mand"
          OnRowDeleting=" GridView1_RowDe leting" OnRowEditing="G ridView1_RowEdi ting"
          ShowFooter="Tru e">
          <Columns>
          <asp:BoundFie ld DataField="Cate goryID"
          HeaderText="Cat egoryID" />
          <asp:BoundFie ld DataField="Cate goryName"
          HeaderText="Cat egoryName" />
          <asp:BoundFie ld DataField="Desc ription"
          HeaderText="Des cription" />
          <asp:TemplateFi eld HeaderText="Tem plateField">
          <ItemTemplate >
          <asp:Button ID="btnEdit" runat="server" Text="Edit"
          CommandName="Ed it" />
          <asp:ImageButto n ID="imgBtn" runat="server"
          ImageUrl="http://wcf.netfx3.com/Themes/default/images/logo.gif"
          CommandName="Ed it" />
          </ItemTemplate>
          <FooterTemplate >
          <asp:Button ID="btnInsert" runat="server" Text="Insert"
          CommandName="In sert" />
          </FooterTemplate>
          </asp:TemplateFie ld>
          <asp:CommandFie ld ShowDeleteButto n="True" />
          </Columns>
          </asp:GridView>
          >
          </div>
          </form>
          </body>
          =============== =============
          >
          =========code behind========= =====
          public partial class dataaccess_Cust omVOGridView : System.Web.UI.P age
          {
          protected void Page_Load(objec t sender, EventArgs e)
          {
          if (!IsPostBack)
          {
          BindGrid();
          >
          }
          >
          }
          >
          private void BindGrid()
          {
          CategoryVO[] categories = new CategoryVO[10];
          >
          for (int i = 0; i < categories.Leng th; i++)
          {
          CategoryVO vo = new CategoryVO();
          vo.CategoryID = i + 1;
          vo.CategoryName = "Category_" + vo.CategoryID;
          vo.Description = "Descriptio n of " + vo.CategoryName ;
          >
          categories[i] = vo;
          }
          >
          GridView1.DataS ource = categories;
          GridView1.DataB ind();
          }
          protected void GridView1_RowCo mmand(object sender,
          GridViewCommand EventArgs e)
          {
          >
          Response.Write( "<br/>GridView1_RowC ommand: " + e.CommandName);
          >
          >
          }
          protected void GridView1_RowDe leting(object sender,
          GridViewDeleteE ventArgs e)
          {
          Response.Write( "<br/>GridView1_RowD eleting " + e.RowIndex);
          }
          protected void GridView1_RowEd iting(object sender,
          GridViewEditEve ntArgs e)
          {
          Response.Write( "<br/>GridView1_RowE diting " + e.NewEditIndex) ;
          }
          }
          =============== ===========
          >
          =========custom class========== =====
          public class CategoryVO
          {
          private int _id;
          private string _name;
          private string _description;
          >
          >
          public CategoryVO()
          {
          >
          }
          >
          public CategoryVO(int id, string name, string description)
          {
          _id = id;
          _name = name;
          _description = description;
          }
          >
          >
          public int CategoryID
          {
          get { return _id; }
          set { _id = value; }
          }
          >
          public string CategoryName
          {
          get { return _name; }
          set { _name = value; }
          }
          >
          public string Description
          {
          get { return _description; }
          set { _description = value; }
          }
          >
          >
          }
          =============== =============== ===
          >
          Please feel free to let me know if you have any further questions or new
          finding.
          >
          Sincerely,
          >
          Steven Cheng
          >
          Microsoft MSDN Online Support Lead
          >
          >
          >
          =============== =============== =============== =====
          >
          Get notification to my posts through email? Please refer to
          Gain technical skills through documentation and training, earn certifications and connect with the community

          ications.
          >
          >
          >
          Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
          where an initial response from the community or a Microsoft Support
          Engineer within 1 business day is acceptable. Please note that each follow
          up response may take approximately 2 business days as the support
          professional working with you may need further investigation to reach the
          most efficient resolution. The offering is not appropriate for situations
          that require urgent, real-time or phone-based interactions or complex
          project analysis and dump analysis issues. Issues of this nature are best
          handled working with a dedicated Microsoft Support Engineer by contacting
          Microsoft Customer Support Services (CSS) at
          http://msdn.microsoft.com/subscripti...t/default.aspx.
          >
          =============== =============== =============== =====
          >
          >
          >
          This posting is provided "AS IS" with no warranties, and confers no
          rights.
          >
          >

          Comment

          • Steven Cheng[MSFT]

            #6
            Re: GridView RowCommand Not Firing

            Thanks for your reply AG,

            Based on your further description, I'm getting abit closer to the problem
            your encountered. And I think the main cause here should be your
            ContentPlaceHol der's ViewState is disabled rather than master page. As
            for Template databound control such as GridView, DataGrid, after
            databinding, they'll store the bound data into ViewState so that we do not
            need to rebind the data in seqentual postback. However, when you disable
            the ViewState of them or their container control, the bound data won't be
            persisted after databinding, therefore we need to perform databinding on
            each page request(no matter the intial request or postback).

            I've modified my last test example and put the content page in a
            ContentPlaceHol der within a master page and set its EnableViewState to
            "false". And as long as I bind data to the GridView in each page request,
            all the postback commands (our custom button in templateField or built-in
            button field ) can work as expected. My modified page codebehind is as
            below:

            =============== ===
            protected void Page_Load(objec t sender, EventArgs e)
            {

            BindGrid();

            }
            =============== =====

            All the other code remains the same. So is your page also rebinding the
            data to the GridView in each request? You can test the same behavior
            through the my page or your modifeid version to see whether it works.

            If there is anything unclear or any other questions , please feel free to
            let me know.

            Sincerely,

            Steven Cheng

            Microsoft MSDN Online Support Lead


            This posting is provided "AS IS" with no warranties, and confers no rights.

            Comment

            • AG

              #7
              Re: GridView RowCommand Not Firing

              Steven,

              Thanks.
              I had already confirmed your comments and have turned on viewstate for the
              content placeholder. It being off was not intentional. Probably an
              unintentional scroll of the mousewheel.
              While I can get my project to do what I want now that I know how things
              work, I do think that it should be considered a bug that the events don't
              fire without viewstate for a template column, but DO fire for a
              commandfield.

              Please address the below item.

              On another note.
              I like the idea of using the footer of the gridview to add a new record.
              However, if there is no data, the gridview does not render at all.
              Is there any way to render the header and footer if there is no data for the
              gridview?

              --

              AG
              Email: discuss at adhdata dot com



              "Steven Cheng[MSFT]" <stcheng@online .microsoft.comw rote in message
              news:3LEJDQp7GH A.1860@TK2MSFTN GXA01.phx.gbl.. .
              Thanks for your reply AG,
              >
              Based on your further description, I'm getting abit closer to the problem
              your encountered. And I think the main cause here should be your
              ContentPlaceHol der's ViewState is disabled rather than master page. As
              for Template databound control such as GridView, DataGrid, after
              databinding, they'll store the bound data into ViewState so that we do not
              need to rebind the data in seqentual postback. However, when you disable
              the ViewState of them or their container control, the bound data won't be
              persisted after databinding, therefore we need to perform databinding on
              each page request(no matter the intial request or postback).
              >
              I've modified my last test example and put the content page in a
              ContentPlaceHol der within a master page and set its EnableViewState to
              "false". And as long as I bind data to the GridView in each page request,
              all the postback commands (our custom button in templateField or built-in
              button field ) can work as expected. My modified page codebehind is as
              below:
              >
              =============== ===
              protected void Page_Load(objec t sender, EventArgs e)
              {
              >
              BindGrid();
              >
              }
              =============== =====
              >
              All the other code remains the same. So is your page also rebinding the
              data to the GridView in each request? You can test the same behavior
              through the my page or your modifeid version to see whether it works.
              >
              If there is anything unclear or any other questions , please feel free to
              let me know.
              >
              Sincerely,
              >
              Steven Cheng
              >
              Microsoft MSDN Online Support Lead
              >
              >
              This posting is provided "AS IS" with no warranties, and confers no
              rights.
              >

              Comment

              • Steven Cheng[MSFT]

                #8
                Re: GridView RowCommand Not Firing

                Thanks for your reply AG,

                As for the Footer, Header template for empty datasource case, I'm afraid so
                far the GridView can not display any GridViewRow when there is no data
                record in the DataSource since GridViewRow is generated based on DataSource
                records. However, if you do want to provide a "insert item" interface even
                when there is no data supplied in the DataSource, you can consider use the
                "EmptyDataTempl ate" to provide a insert user interface so that the user can
                directly see the insert item panel when the datasource is empty(contains no
                record). e.g.

                =============== =====

                <asp:GridView ID="GridView1" runat="server" ............... ....>
                ............... ............... .
                <EmptyDataTempl ate>
                <asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
                <asp:TextBox ID="TextBox3" runat="server"> </asp:TextBox>
                <asp:Button ID="btnInsert" runat="server" Text="Edit"
                CommandName="In sert" />
                </EmptyDataTempla te>
                </asp:GridView>
                =============== =====

                Please feel free to let me know if there is any thing else you wonder.

                Sincerely,

                Steven Cheng

                Microsoft MSDN Online Support Lead


                This posting is provided "AS IS" with no warranties, and confers no rights.

                Comment

                • AG

                  #9
                  Re: GridView RowCommand Not Firing

                  Thanks Steven,

                  I do know about the EmptyDataTempla te. It just seems like duplication of
                  work.
                  The 1.1 datagrid did show header/footer even if there were no data rows and
                  I was hoping that there was a way to duplicate that. I wll just have to use
                  another method.

                  --

                  AG
                  Email: discuss at adhdata dot com



                  "Steven Cheng[MSFT]" <stcheng@online .microsoft.comw rote in message
                  news:h4HYICN8GH A.2336@TK2MSFTN GXA01.phx.gbl.. .
                  Thanks for your reply AG,
                  >
                  As for the Footer, Header template for empty datasource case, I'm afraid
                  so
                  far the GridView can not display any GridViewRow when there is no data
                  record in the DataSource since GridViewRow is generated based on
                  DataSource
                  records. However, if you do want to provide a "insert item" interface
                  even
                  when there is no data supplied in the DataSource, you can consider use the
                  "EmptyDataTempl ate" to provide a insert user interface so that the user
                  can
                  directly see the insert item panel when the datasource is empty(contains
                  no
                  record). e.g.
                  >
                  =============== =====
                  >
                  <asp:GridView ID="GridView1" runat="server" ............... ....>
                  ............... ............... .
                  <EmptyDataTempl ate>
                  <asp:TextBox ID="TextBox1" runat="server"> </asp:TextBox>
                  <asp:TextBox ID="TextBox3" runat="server"> </asp:TextBox>
                  <asp:Button ID="btnInsert" runat="server" Text="Edit"
                  CommandName="In sert" />
                  </EmptyDataTempla te>
                  </asp:GridView>
                  =============== =====
                  >
                  Please feel free to let me know if there is any thing else you wonder.
                  >
                  Sincerely,
                  >
                  Steven Cheng
                  >
                  Microsoft MSDN Online Support Lead
                  >
                  >
                  This posting is provided "AS IS" with no warranties, and confers no
                  rights.
                  >

                  Comment

                  • Steven Cheng[MSFT]

                    #10
                    Re: GridView RowCommand Not Firing

                    Thanks for your reply AG,

                    Yes, the different implementation of GridView and DataGrid make us have to
                    handle the empty datasource scenario differently. Actually, this change is
                    also made according to some feedback from the community. Anyway, it seems
                    that we would prefer a more flexible interface of such a template databound
                    control. I think this is a good point that you can submit the request for
                    the ASP.NET product team to refer.


                    kID=118879

                    Also, if you meet any new problem in the developing or if anything else we
                    can help, please feel free to post here.

                    Sincerely,

                    Steven Cheng

                    Microsoft MSDN Online Support Lead


                    This posting is provided "AS IS" with no warranties, and confers no rights.

                    Comment

                    • AG

                      #11
                      Re: GridView RowCommand Not Firing

                      Thanks Steven,

                      I would be happy to submit the request, but the link you supplied is for a
                      different issue:
                      The path '/WebSite/App_GlobalResou rces/' maps to a directory outside this
                      application, which is not supported.

                      --

                      AG
                      Email: discuss at adhdata dot com



                      "Steven Cheng[MSFT]" <stcheng@online .microsoft.comw rote in message
                      news:lpz23ES8GH A.1864@TK2MSFTN GXA01.phx.gbl.. .
                      Thanks for your reply AG,
                      >
                      Yes, the different implementation of GridView and DataGrid make us have to
                      handle the empty datasource scenario differently. Actually, this change is
                      also made according to some feedback from the community. Anyway, it seems
                      that we would prefer a more flexible interface of such a template
                      databound
                      control. I think this is a good point that you can submit the request for
                      the ASP.NET product team to refer.
                      >

                      kID=118879
                      >
                      Also, if you meet any new problem in the developing or if anything else we
                      can help, please feel free to post here.
                      >
                      Sincerely,
                      >
                      Steven Cheng
                      >
                      Microsoft MSDN Online Support Lead
                      >
                      >
                      This posting is provided "AS IS" with no warranties, and confers no
                      rights.
                      >

                      Comment

                      • Steven Cheng[MSFT]

                        #12
                        Re: GridView RowCommand Not Firing

                        Thanks for your quick reply AG,

                        yes, I incorrectly include the issue id in the former link. You can submit
                        through the root link of feedback page:



                        Sincerely,

                        Steven Cheng

                        Microsoft MSDN Online Support Lead



                        This posting is provided "AS IS" with no warranties, and confers no rights.

                        Comment

                        • AG

                          #13
                          Re: GridView RowCommand Not Firing

                          Thank you, I have submitted the feedback.

                          --

                          AG
                          Email: discuss at adhdata dot com



                          "Steven Cheng[MSFT]" <stcheng@online .microsoft.comw rote in message
                          news:7GIXriT8GH A.4344@TK2MSFTN GXA01.phx.gbl.. .
                          Thanks for your quick reply AG,
                          >
                          yes, I incorrectly include the issue id in the former link. You can submit
                          through the root link of feedback page:
                          >

                          >
                          Sincerely,
                          >
                          Steven Cheng
                          >
                          Microsoft MSDN Online Support Lead
                          >
                          >
                          >
                          This posting is provided "AS IS" with no warranties, and confers no
                          rights.
                          >

                          Comment

                          • santosh.ha@gmail.com

                            #14
                            Re: GridView RowCommand Not Firing

                            Hi Steven,

                            I have read thru the reply chains I have one doubt when we are writing
                            differnt mehtod of editing and Deleting , why should we include the
                            method for onRowCommand in the grid declaration. I haev some similar
                            problem,

                            I Grid view with two buttonfields and have used OnRowCommand in the
                            gridview declaration. But during run time it thors an error as "The
                            GridView fired event RowEditing which wasn't handled."

                            Not sure why this is coming...should i given the implementation for
                            RoeEiditing and RowDeleting methods?

                            thanks,
                            Santosh

                            AG wrote:
                            Thank you, I have submitted the feedback.
                            >
                            --
                            >
                            AG
                            Email: discuss at adhdata dot com
                            >
                            >
                            >
                            "Steven Cheng[MSFT]" <stcheng@online .microsoft.comw rote in message
                            news:7GIXriT8GH A.4344@TK2MSFTN GXA01.phx.gbl.. .
                            Thanks for your quick reply AG,

                            yes, I incorrectly include the issue id in the former link. You can submit
                            through the root link of feedback page:



                            Sincerely,

                            Steven Cheng

                            Microsoft MSDN Online Support Lead



                            This posting is provided "AS IS" with no warranties, and confers no
                            rights.

                            Comment

                            Working...