Results 1 to 2 of 2

Thread: [RESOLVED][2005]How to click GridView row and allow to call back OnRowCommand...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    445

    [RESOLVED][2005]How to click GridView row and allow to call back OnRowCommand...

    I have a GridView, I need to single click the GridView row and allow to do function like GridView RowCommand....

    I have a GridView RowCommand at coding behind... Possible to call it by clicking GridView row..?

    Code:
    protected void GridView1_RowCommand(Object sender, GridViewCommandEventArgs e)
     {
     if (e.CommandName == "View")
       {
         Session["KHNo"] = GridView1.Rows[Convert.ToInt32(e.CommandArgument)].Cells[0].Text.ToString();
                Response.Redirect("KHPrice.aspx");
            }
        }
    Last edited by wenight; Sep 18th, 2008 at 07:33 PM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2005]How to click GridView row and allow to call back OnRowCommand coding behind...?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width