datagrid a cell index

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrs85
    New Member
    • Feb 2008
    • 11

    datagrid a cell index

    i need to know how to retrieve a selected cell (single cell) index.

    i would to retrieve a single selected cell DataTextField..

    in my datagrid have hyperlink button.. i put it in databound so at first the data could be inserted from sql and put the content into the DataTextField.. the problem is the i dont want to select the whole row or row key(primary key)..

    pls help me!!
  • vanc
    Recognized Expert New Member
    • Mar 2007
    • 211

    #2
    Originally posted by jrs85
    i need to know how to retrieve a selected cell (single cell) index.

    i would to retrieve a single selected cell DataTextField..

    in my datagrid have hyperlink button.. i put it in databound so at first the data could be inserted from sql and put the content into the DataTextField.. the problem is the i dont want to select the whole row or row key(primary key)..

    pls help me!!
    In any Cell events, there are Row Index and Column Index in DataGridViewCel lEventArgs. If you have those two values then you can get the selected cell index easily. Cheers.

    Comment

    Working...