Raising GridView's SelectedIndexChanged event in ASP .net 2.0

Discussion in 'ASP .Net Datagrid Control' started by Jay, Jun 1, 2006.

  1. Jay

    Jay Guest

    Hello,

    I am populating the data from the DataView in my GridView. I want to
    raise the SelectedIndexChanged Event or the RowCommand event when I click any
    where on any of the rows in the GridView. All my columns are "BoundField"s
    and the "DataField" property is set to a column in the DataView. I don't
    want to add a "ButtonField" in my GridView.

    Please let me know how I can achieve the above.

    Thanks!!
    jay
     
    Jay, Jun 1, 2006
    #1
    1. Advertising

  2. Jay

    PeterKellner Guest

    On Thu, 1 Jun 2006 14:38:02 -0700, Jay <>
    wrote:

    >Hello,
    >
    > I am populating the data from the DataView in my GridView. I want to
    >raise the SelectedIndexChanged Event or the RowCommand event when I click any
    >where on any of the rows in the GridView. All my columns are "BoundField"s
    >and the "DataField" property is set to a column in the DataView. I don't
    >want to add a "ButtonField" in my GridView.
    >
    > Please let me know how I can achieve the above.
    >
    >Thanks!!
    >jay


    The new book from WROX called "MVP Hacks" has a full example of this.
    It's not simple.
    Peter Kellner
    http://peterkellner.net
     
    PeterKellner, Jun 8, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. msnews.microsoft.com
    Replies:
    6
    Views:
    3,294
    msnews.microsoft.com
    Apr 28, 2005
  2. Stu Lock
    Replies:
    1
    Views:
    1,024
    =?Utf-8?B?UmFnaHVyYW0gUmFpY2hvb3Rp?=
    May 17, 2006
  3. =?Utf-8?B?SmF5?=
    Replies:
    0
    Views:
    619
    =?Utf-8?B?SmF5?=
    Jun 2, 2006
  4. =?Utf-8?B?LU1U?=

    Raising SelectedIndexChanged event in a gridview

    =?Utf-8?B?LU1U?=, Jun 5, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    16,388
    =?Utf-8?B?SmF5?=
    Jun 6, 2006
  5. Julia B
    Replies:
    0
    Views:
    3,086
    Julia B
    Jan 5, 2009
Loading...

Share This Page