Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid's Text Selection in a cell

Reply
Thread Tools

DataGrid's Text Selection in a cell

 
 
=?Utf-8?B?QmlkYXJrb3Rh?=
Guest
Posts: n/a
 
      05-16-2005
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
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      05-17-2005
In either ItemDataBound or PreRender event get to the cell and set attribute
"unselectable" to "on".

Eliyahu

"Bidarkota" <> wrote in message
news:993C28AD-A2CA-44E4-8C32-...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JTable with row selection, but no cell selection Simon Niederberger Java 2 01-07-2005 04:17 PM
JS comparing innerHTML to text selection (window.getSelection() /document.selection) Andrew Crowe HTML 1 09-13-2004 02:22 PM
How to set and highlight text in JTable cell on selection and/or invoke cell editor directly. news.rcn.com Java 1 07-12-2004 10:22 PM
How to change a range selection to text selection? Loebb Javascript 0 02-23-2004 02:12 PM
HOWTO autopost the selection list upon selection curiousity ASP .Net Mobile 0 11-21-2003 12:57 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57