PC Review


Reply
Thread Tools Rate Thread

Datagrid click colour change

 
 
JD
Guest
Posts: n/a
 
      7th Dec 2003
How do i get rid of the 1st column that appears in a
datagrid? I do not want this?

Also how do i change the colour of the background of a
cell when the user selects it. i.e for the first coloumn
i have made this non-editable and therefore i do not want
the graey colour that appears when the user clicks on a
cell in the first row.
As only my second row is editable, i only want a click
colour for this coloumn

thx
 
Reply With Quote
 
 
 
 
Jan Tielens
Guest
Posts: n/a
 
      8th Dec 2003
Regarding the colored textbox: this can be accomplished by creating a custom
TextBoxColumn, inheriting from the default one. The trick is to add an event
to this column, that will be raised for each displayed textbox. In this
event you can set the desired colors etc. For a complete example check out
the Syncfusion faq:
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q745q

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


"JD" <J@di> wrote in message news:00a601c3bce5$5b54c280$(E-Mail Removed)...
> How do i get rid of the 1st column that appears in a
> datagrid? I do not want this?
>
> Also how do i change the colour of the background of a
> cell when the user selects it. i.e for the first coloumn
> i have made this non-editable and therefore i do not want
> the graey colour that appears when the user clicks on a
> cell in the first row.
> As only my second row is editable, i only want a click
> colour for this coloumn
>
> thx



 
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
Change Cell colour on click goneil Microsoft Excel Misc 5 27th Oct 2009 06:21 AM
How to Change Colour of Cell in datagrid satish Microsoft Dot NET 0 27th Mar 2007 01:11 PM
Object Colour change on click =?Utf-8?B?U3BlbmNlck1D?= Microsoft Powerpoint 7 7th Jun 2006 08:11 PM
To change font colour on a single click Brent Microsoft Powerpoint 2 29th Feb 2004 09:02 PM
How to change cell colour in datagrid? QT Microsoft VB .NET 1 9th Jan 2004 10:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 AM.