473,509 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Higlighting a DataGrid Row?

I want to be able to highlight the row in the datagrid... I want this to
happen when I click on a cell in that row and if I click in a cell on
another row I want to hightlight THAT whole row.. is it possible?

/Lars
Nov 20 '05 #1
5 1078
I know it's DataGrid.Select(rowIndex) but how do I specify the Color of the
hightlight...

/Lars
"Lars Netzel" <[stop_spam]@host.topdomain> skrev i meddelandet
news:ex**************@TK2MSFTNGP11.phx.gbl...
I want to be able to highlight the row in the datagrid... I want this to
happen when I click on a cell in that row and if I click in a cell on
another row I want to hightlight THAT whole row.. is it possible?

/Lars

Nov 20 '05 #2
Hi Lars,

This is the datagridpage.

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q856q

I thought that this was the article you where looking for.

Cor
Nov 20 '05 #3
Hi,

You will have to make a derived datagridtextboxcolumn for that.

http://msdn.microsoft.com/library/de...stdatagrid.asp

Ken
------------------

"Lars Netzel" <[stop_spam]@host.topdomain> wrote in message
news:ef**************@TK2MSFTNGP11.phx.gbl:
I know it's DataGrid.Select(rowIndex) but how do I specify the Color of
the
hightlight...

/Lars
"Lars Netzel" <[stop_spam]@host.topdomain> skrev i meddelandet
news:ex**************@TK2MSFTNGP11.phx.gbl...
I want to be able to highlight the row in the datagrid... I want this
to
happen when I click on a cell in that row and if I click in a cell on
another row I want to hightlight THAT whole row.. is it possible?

/Lars


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #4
Hi Ken,

That was what I was thinking as well, however with a datagrid with a bool
column, a comboboxcolumn, a calendercolumn, a textboxcolumn this looks for
me a lot of work,

(Before you say it, I do not see it as a challenge to make it)

Cor

You will have to make a derived datagridtextboxcolumn for that.

http://msdn.microsoft.com/library/de...stdatagrid.asp

Nov 20 '05 #5
Hi,

Sorry. Take a look at the datagrid and tablestyles selectionbackcolor
and selectionforecolor properties.

http://msdn.microsoft.com/library/de...colortopic.asp

http://msdn.microsoft.com/library/de...colortopic.asp

Ken
---------------

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ug**************@TK2MSFTNGP11.phx.gbl:
Hi,

You will have to make a derived datagridtextboxcolumn for that.

HYPERLINK
"http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwinforms
/html/wnf_custdatagrid.asp"http://msdn.microsoft.com/library/default.asp?url
=/library/en-us/dnwinforms/html/wnf_custdatagrid.asp

Ken
------------------

"Lars Netzel" <[stop_spam]@host.topdomain> wrote in message
news:ef**************@TK2MSFTNGP11.phx.gbl:
I know it's DataGrid.Select(rowIndex) but how do I specify the Color
of
the
hightlight...

/Lars
"Lars Netzel" <[stop_spam]@host.topdomain> skrev i meddelandet
news:ex**************@TK2MSFTNGP11.phx.gbl...

I want to be able to highlight the row in the datagrid... I want
this
to
happen when I click on a cell in that row and if I click in a cell
on
another row I want to hightlight THAT whole row.. is it possible?

/Lars


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #6

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

Similar topics

3
1448
by: Matthias Pospiech | last post by:
There are many sites that offer code examples with syntax higlighting. Is there a way to generate the highlighting with a php function automatically ? How is such a thing done generally ? ...
1
4282
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
0
693
by: Richard Ryerson | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls (watch...
2
6375
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
0
7233
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
7135
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7410
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
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.