PC Review


Reply
Thread Tools Rate Thread

Datagrid Style - Don't select text

 
 
Saber
Guest
Posts: n/a
 
      19th Aug 2005
When I click on a DataGrid item, the text below
mouse pointer selects and turns blue.
My DataGrid is ReadOnly and I don't need to let
users to select items.
Is there a way to prevent selecting the text?

--
Saber S.
http://maghalat.com


 
Reply With Quote
 
 
 
 
Phil G.
Guest
Posts: n/a
 
      19th Aug 2005
datagrid.readonly = true



"Saber" <saber[.AT.]oxin.ir> wrote in message
news:(E-Mail Removed)...
> When I click on a DataGrid item, the text below
> mouse pointer selects and turns blue.
> My DataGrid is ReadOnly and I don't need to let
> users to select items.
> Is there a way to prevent selecting the text?
>
> --
> Saber S.
> http://maghalat.com
>



 
Reply With Quote
 
Saber
Guest
Posts: n/a
 
      19th Aug 2005
Thanks Phill,
I said it is a ReadOnly datagird becauase already
I set ReadOnly property True.
Sorry I didn't told it clear in my previous post.
The problem is, after a click, the text in the row selects.
I tried to play with DataGrid's OnClick event, but it only
works when 'Row Header' clicks.

--
Saber S.
http://maghalat.com
"Phil G." <(E-Mail Removed)> wrote in message
news:de59sq$eep$(E-Mail Removed)...
> datagrid.readonly = true
>
>
>
> "Saber" <saber[.AT.]oxin.ir> wrote in message
> news:(E-Mail Removed)...
>> When I click on a DataGrid item, the text below
>> mouse pointer selects and turns blue.
>> My DataGrid is ReadOnly and I don't need to let
>> users to select items.
>> Is there a way to prevent selecting the text?
>>
>> --
>> Saber S.
>> http://maghalat.com
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
TEXTBOX --- i want to select part of the text and change its style pedro@code4cerveja.com Microsoft C# .NET 2 14th Apr 2008 04:41 PM
How do I select text with the same style (style checkbox in xp03) glo Microsoft Word Document Management 1 3rd Jan 2008 04:38 PM
DataGrid header style inconsistent with sortable column style cedoucette@alum.rpi.edu Microsoft ASP .NET 0 14th Oct 2005 01:13 AM
datagrid row text colour/style Rob Blij Microsoft Dot NET Compact Framework 1 25th Jun 2005 04:46 AM
I know HTML, I know CSS - So why can't I select some text and apply a style to it? Paul H Microsoft Frontpage 24 28th Oct 2004 05:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 AM.