473,394 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Changing the Back color of ActiveCell

Hi all,
i am using UltraWinGrid in my application and i want to change the Back Color of the Active Cell to transparent.
i have defined CellClickAction as RowSelect. So if we click on the cell the row should be selected and the cell which was clicked must be de-selected.
If anyone know anything, plz help me out.

___
Newsgroups brought to you courtesy of www.dotnetjohn.com
Nov 16 '05 #1
3 4431
HI there,

I don't know about the cell in the UltraWinGrid, but I've faced the same
problem with the standard DataGrid that comes with .NET.
The solution for the cells with the System.Windows.Forms.DataGrid control,
was to override the OnPaint event and then based on a certain criteria to
change the brush's color (which can look as a unselection or even make the
cell transparent).

Hope that'll help

Branimir
--
Branimir Giurov
MCSD.NET, MCDBA
www.sofiadev.org

"Nilz" <ma*******@yahoo.com> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...
Hi all,
i am using UltraWinGrid in my application and i want to change the Back Color of the Active Cell to transparent. i have defined CellClickAction as RowSelect. So if we click on the cell the row should be selected and the cell which was clicked must be
de-selected. If anyone know anything, plz help me out.

___
Newsgroups brought to you courtesy of www.dotnetjohn.com

Nov 16 '05 #2
Here's a link to an article on the codeproject:
http://www.codeproject.com/csharp/cu...columnstyl.asp

Cheers,
Branimir

--
Branimir Giurov
MCSD.NET, MCDBA
www.sofiadev.org

"Nilz" <ma*******@yahoo.com> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...
Hi all,
i am using UltraWinGrid in my application and i want to change the Back Color of the Active Cell to transparent. i have defined CellClickAction as RowSelect. So if we click on the cell the row should be selected and the cell which was clicked must be
de-selected. If anyone know anything, plz help me out.

___
Newsgroups brought to you courtesy of www.dotnetjohn.com

Nov 16 '05 #3
Thak you Branimir,
I will try that thing and will let u know.

Here's a link to an article on the codeproject:
http://www.codeproject.com/csharp/cu...columnstyl.asp

Cheers,
Branimir

--
Branimir Giurov
MCSD.NET, MCDBA
www.sofiadev.org

"Nilz" <ma*******@yahoo.com> wrote in message
news:eN**************@TK2MSFTNGP12.phx.gbl...
Hi all,
i am using UltraWinGrid in my application and i want to change the Back

Color of the Active Cell to transparent.
i have defined CellClickAction as RowSelect. So if we click on the cell

the row should be selected and the cell which was clicked must be
de-selected.
If anyone know anything, plz help me out.

___
Newsgroups brought to you courtesy of www.dotnetjohn.com



___
Newsgroups brought to you courtesy of www.dotnetjohn.com
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic...
3
by: Geoff Soper | last post by:
I'm trying to dynamically change the cursor of a couple of maps over an image. Basically the image is in an online photo system where there is a rotate mode. In this mode clicking on the left or...
2
by: Gerald Maher | last post by:
Hi Reading in XML file, changing elements and saving back to the file, how can i do that, I want to be able to read an XML file and read out Elements. for example <name>Tom</tom> When I...
1
by: Jaweed | last post by:
Hi I'm developing an ASP.NET app in Visual studio (using C# for code behind). My question is fairly simple (i think). When I go to the code behind page, the controls in the html page are made...
6
by: Darian | last post by:
I am wondering how (if it is possible of course) I can change a users screen resolution to a certain size when running my application and then change it back when they exit my application. For...
32
by: deko | last post by:
I have a popup form with a textbox that is bound to a memo field. I've been warned about memo fields so I'm wondering if I should use this code. Is there any risk with changing the form's...
2
by: Jim Frazer | last post by:
Hi, I'm working on an application in C# that will allow the user to create simple CAD drawings on a CEPC system. I would like to be able to change the cursor shape depending on the drawing mode...
1
by: nickwright | last post by:
Hi, I am currently having a problem getting the below code to work. I want to change some cells to different currencies when a macro is selected. Can anyone help with this If...
4
by: omono84 | last post by:
I know that this should be rather simple but i seem to be missing a step to get it to work. and have been unable to find a solution on the net. The aim is that I click on the open button to find...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.