|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
change DataSet Row background colorHi,
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 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 Show quoteHide quote "martin1" <mart***@discussions.microsoft.com> schreef in bericht news:A60EFBDD-5F4A-4543-8E6F-0FDEF7F6A6FA@microsoft.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 Cor,
can we use DataSet's table and NewRow() property/method like DataSet.Tables().NewRow() to change row background color? Thanks, Show quoteHide quote "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" <mart***@discussions.microsoft.com> schreef in bericht > news:A60EFBDD-5F4A-4543-8E6F-0FDEF7F6A6FA@microsoft.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 > > > Martin,
Where can you look at that color in the dataset. It is a piece in memory. Cor Show quoteHide quote "martin1" <mart***@discussions.microsoft.com> schreef in bericht news:6119B608-70D2-4766-8A3E-13AB72E8F75A@microsoft.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" <mart***@discussions.microsoft.com> schreef in bericht >> news:A60EFBDD-5F4A-4543-8E6F-0FDEF7F6A6FA@microsoft.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 >> >> >> Cor,
I am wrong place, i should use DataGridView to change color. Thanks, Show quoteHide quote "Cor Ligthert [MVP]" wrote: > Martin, > > Where can you look at that color in the dataset. > It is a piece in memory. > > Cor > > "martin1" <mart***@discussions.microsoft.com> schreef in bericht > news:6119B608-70D2-4766-8A3E-13AB72E8F75A@microsoft.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" <mart***@discussions.microsoft.com> schreef in bericht > >> news:A60EFBDD-5F4A-4543-8E6F-0FDEF7F6A6FA@microsoft.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 > >> > >> > >> > > >
Question about Datasets and ASP.NET
Type xxx not defined #2 Global variables numbers investigation Something tricky! Multilanguage support Mulitp app.config files in multiple project solution Re: Parse text into words? vb2005 - how to rehide Form constructor after exposing it? -not co messagebox response enumeration |
|||||||||||||||||||||||