468,554 Members | 1,966 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,554 developers. It's quick & easy.

change DataSet Row background color

Hi,

want to loop DataSet to change row background color based on data retrieved
from sql db, the color can be blue, yellow, red or purple. Therefore, Is
there any way (vb.net) to change dataset row background color? how to loop
dataset, which is already populated data from database?

Thanks
Jun 23 '06 #1
4 2478
Martin,

A dataset has never a background color. The control that you use to show the
dataset can have a background, but that can even be more if you show the
dataset in the same time using many controls.

I hope this helps,

Cor

"martin1" <ma*****@discussions.microsoft.com> schreef in bericht
news:A6**********************************@microsof t.com...
Hi,

want to loop DataSet to change row background color based on data
retrieved
from sql db, the color can be blue, yellow, red or purple. Therefore, Is
there any way (vb.net) to change dataset row background color? how to loop
dataset, which is already populated data from database?

Thanks

Jun 24 '06 #2
Cor,

can we use DataSet's table and NewRow() property/method like
DataSet.Tables().NewRow() to change row background color?

Thanks,

"Cor Ligthert [MVP]" wrote:
Martin,

A dataset has never a background color. The control that you use to show the
dataset can have a background, but that can even be more if you show the
dataset in the same time using many controls.

I hope this helps,

Cor

"martin1" <ma*****@discussions.microsoft.com> schreef in bericht
news:A6**********************************@microsof t.com...
Hi,

want to loop DataSet to change row background color based on data
retrieved
from sql db, the color can be blue, yellow, red or purple. Therefore, Is
there any way (vb.net) to change dataset row background color? how to loop
dataset, which is already populated data from database?

Thanks


Jun 26 '06 #3
Martin,

Where can you look at that color in the dataset.
It is a piece in memory.

Cor

"martin1" <ma*****@discussions.microsoft.com> schreef in bericht
news:61**********************************@microsof t.com...
Cor,

can we use DataSet's table and NewRow() property/method like
DataSet.Tables().NewRow() to change row background color?

Thanks,

"Cor Ligthert [MVP]" wrote:
Martin,

A dataset has never a background color. The control that you use to show
the
dataset can have a background, but that can even be more if you show the
dataset in the same time using many controls.

I hope this helps,

Cor

"martin1" <ma*****@discussions.microsoft.com> schreef in bericht
news:A6**********************************@microsof t.com...
> Hi,
>
> want to loop DataSet to change row background color based on data
> retrieved
> from sql db, the color can be blue, yellow, red or purple. Therefore,
> Is
> there any way (vb.net) to change dataset row background color? how to
> loop
> dataset, which is already populated data from database?
>
> Thanks


Jun 26 '06 #4
Cor,

I am wrong place, i should use DataGridView to change color.

Thanks,
"Cor Ligthert [MVP]" wrote:
Martin,

Where can you look at that color in the dataset.
It is a piece in memory.

Cor

"martin1" <ma*****@discussions.microsoft.com> schreef in bericht
news:61**********************************@microsof t.com...
Cor,

can we use DataSet's table and NewRow() property/method like
DataSet.Tables().NewRow() to change row background color?

Thanks,

"Cor Ligthert [MVP]" wrote:
Martin,

A dataset has never a background color. The control that you use to show
the
dataset can have a background, but that can even be more if you show the
dataset in the same time using many controls.

I hope this helps,

Cor

"martin1" <ma*****@discussions.microsoft.com> schreef in bericht
news:A6**********************************@microsof t.com...
> Hi,
>
> want to loop DataSet to change row background color based on data
> retrieved
> from sql db, the color can be blue, yellow, red or purple. Therefore,
> Is
> there any way (vb.net) to change dataset row background color? how to
> loop
> dataset, which is already populated data from database?
>
> Thanks


Jun 27 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Itay L. | last post: by
13 posts views Thread by shapper | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.