Geeks With Blogs
Gaurav Taneja Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in.
protected void gvArtist_RowCommand(object sender, GridViewCommandEventArgs e)
        int intUserGridID=0;
        if (e.CommandName == AdminConstantKeys.ViewGigsCommandName)
            int intHeaderMasterID = -1;
            GridViewRow grArtist = ((Control)
                (e.CommandSource)).NamingContainer as GridViewRow;

            //Check if command raised by DataRow or not
            if (grArtist.RowIndex != -1)
                intUserGridID =

                Session[AdminConstantKeys.GigsArtistName] = e.CommandArgument.ToString();
                Response.Redirect("../ArtistManagement/ViewGigs.aspx?Id=" + intUserGridID);
    } Posted on Friday, March 14, 2008 12:02 AM Datagrid | Back to top

Comments on this post: Fetching Data Key in Row Command

# re: Fetching Data Key in Row Command
Requesting Gravatar...
That's help.. Thank you!
Left by Khanh on May 22, 2010 6:55 AM

Your comment:
 (will show your gravatar)

Copyright © Gaurav Taneja | Powered by: