473,324 Members | 2,178 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,324 software developers and data experts.

DataGrid Rows Color

I there!!!

How can i change some backcolors or textcolor in some rows in a datagrid??

thanks in advance,

Tiago Costa
Nov 17 '05 #1
2 1477
Hi aaaa,
you can set the back color to change the even numbered rows in the grid by:

dataGrid1.BackColor = System.Drawing.Color.Blue;

The color of the text is changed by modifying the ForeColor property.

The following link will be of some use to you, it shows how you can
customize the appearance of the DataGrid in a windows form
http://msdn.microsoft.com/library/de...designtime.asp

Hope that helps
Mark R Dawson

"aaaa" wrote:
I there!!!

How can i change some backcolors or textcolor in some rows in a datagrid??

thanks in advance,

Tiago Costa

Nov 17 '05 #2
Thanks a lot, but a just want to chage the color of some rows (not even).
Some times line 1,4,7,13,.... other times i want other rows.

How can a Set row X forecolor Proprety???

Thanks in advance
"Mark R. Dawson" <Ma*********@discussions.microsoft.com> escreveu na
mensagem news:72**********************************@microsof t.com...
Hi aaaa,
you can set the back color to change the even numbered rows in the grid
by:

dataGrid1.BackColor = System.Drawing.Color.Blue;

The color of the text is changed by modifying the ForeColor property.

The following link will be of some use to you, it shows how you can
customize the appearance of the DataGrid in a windows form:
http://msdn.microsoft.com/library/de...designtime.asp

Hope that helps
Mark R Dawson

"aaaa" wrote:
I there!!!

How can i change some backcolors or textcolor in some rows in a
datagrid??

thanks in advance,

Tiago Costa

Nov 17 '05 #3

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

Similar topics

6
by: Dan | last post by:
I'd like to loop through selected datagrid rows and extract specified columns from those rows. How would I do that? Thanks... Dan
4
by: Ubi | last post by:
hello, i'm using a dataview to filter my table. how can i get a index (for the original table) of the selected rows (there can be more than 1). please help
1
by: Craig Banks | last post by:
If a row of data in a dataset has a lot of columns the row displaying the data in a datagrid will run way off the screen. What I'd like to do is display a row of data over several datagrid rows so...
1
by: ruca | last post by:
There is anyway to resize dinamically datagrid rows? I have a datagrid with 5 rows for each page. What happens is if in the 3rd page there is only one row to show, that row stays to large in...
0
by: sunilkumar Reddy via DotNetMonster.com | last post by:
hai all first we have taken binded grid Export to excel data from ultrawebgrid (or) datagrid rows, Each row data Expoting to one worksheet in excel workbook, like as grid row1 data contain...
6
by: Roy | last post by:
Since a datagrid is just an html table anyways, this seems like it should be easy but it's giving me a hard time. In ItemDataBound sub I'm trying to kick off javascript code using response.write()....
2
by: | last post by:
Hi all. I need to change datagrid rows height dinamically, so each row shows all the text contained in the cell. There is a "PreferredRowHeight" property in the TableStyle of a datagrid, but it...
1
by: Fred Morrison | last post by:
Is it just me or is there something grossly wrong with the Windows Forms DataGrid control that won't tell me the row count inside it? I'm not talking about just visible rows (what the heck good is...
2
by: Devlei | last post by:
How do I copy the contents of selected rows in a DataGrid (that is bound to a Dataset via a DataView) to the Clipboard for pasting into other applications - such as Excel? Doing the same from a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.