DataGrid's Text Selection in a cell

Discussion in 'ASP .Net' started by =?Utf-8?B?QmlkYXJrb3Rh?=, May 16, 2005.

  1. Can i disable the text selection in a datagrid cell. ( i should not be able
    to select the text to copy in the datagrid). how to achieve this. Please help
    with a sample code.

    Thanks in advance
     
    =?Utf-8?B?QmlkYXJrb3Rh?=, May 16, 2005
    #1
    1. Advertising

  2. In either ItemDataBound or PreRender event get to the cell and set attribute
    "unselectable" to "on".

    Eliyahu

    "Bidarkota" <> wrote in message
    news:...
    > Can i disable the text selection in a datagrid cell. ( i should not be

    able
    > to select the text to copy in the datagrid). how to achieve this. Please

    help
    > with a sample code.
    >
    > Thanks in advance
     
    Eliyahu Goldin, May 17, 2005
    #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. news.rcn.com
    Replies:
    1
    Views:
    9,814
    Chris Smith
    Jul 12, 2004
  2. Simon Niederberger
    Replies:
    2
    Views:
    16,816
    Christian Kaufhold
    Jan 7, 2005
  3. Andrew Crowe
    Replies:
    1
    Views:
    4,555
    Andrew Crowe
    Sep 13, 2004
  4. Empire City
    Replies:
    3
    Views:
    435
    Empire City
    Apr 30, 2004
  5. Loebb
    Replies:
    0
    Views:
    221
    Loebb
    Feb 23, 2004
Loading...

Share This Page