Skip to content

Replies

0
SunilMehta
SunilMehta answered on Aug 6, 2014 8:27 PM

Hi,

I am getting the list of items to be loaded into webdropdown from the database. Once I get the values(ID, description,activeInd) I am adding those values(ID and description) one by one into the webdropdown like this:

For count = 0 to dbvalues.getcount – 1

webdropdown1.Items.Add(New Infragistics.Web.UI.ListControls.DropDownItem(dbvalues.Getvalue(count).ID & " "

& dbvalues.Getvalue(count).Description))

Next

Under this FOR loop, I would like to add a logic to set the font color of an item to RED if activeInd retrieved from the database is No. Can you please help?