how to customize "enable selection" in gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • msaleh
    New Member
    • May 2008
    • 1

    how to customize "enable selection" in gridview

    Hello everyone,

    in visual studio 2005 when i use grid view and enable selection, a new column appears with the word "Select" as link, i want to make one of my data column to be the select link and do the same function of select column.

    is that possible ?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Probably. I've never done it specifically.
    But, I have turned one of my columns (just contained a "part number" if you will) into a link system.
    A quick way would be to attach a handler to the RowDataBound event.
    Then you can go through and manipulate the columns.
    Keep the selection column there, but edit it's visible text to be the value from the column you want it to be. Then hide that other column so the data is not duplicated?

    Comment

    Working...