Results 1 to 2 of 2

Thread: Template Column Row Numbers? (RESOLVED)

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Template Column Row Numbers? (RESOLVED)

    If I am defining an event for a control embedded in a Template Column, for example a DropDownList. How can I determine which row of the datagrid or underlying dataset I am working with from within that Event?
    Last edited by SeanGrebey; Sep 26th, 2005 at 08:51 AM.
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2004
    Location
    Orlando, FL
    Posts
    1,618

    Re: Template Column Row Numbers? (RESOLVED)

    Nevermind, figured it out. In case anybody was wondering I used:

    Dim ddlMyList As DropDownList = DirectCast(sender, DropDownList)
    Dim cell As TableCell = ddlCallCode.Parent
    Dim row As DataGridItem = cell.Parent
    Dim index As Int32 = row.SelectedIndex
    Sean

    Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.

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