Change row color on a ListView using JScript.net -


i'm trying change color of row on listview jscript.net. i'm scripting againts application dont have access code, can add scripts modify listview.

what i'm trying this:

this.listview = controller.renderengine.listcontrol.listview; this.listview.items[0].useitemstyleforsubitems = false; this.listview.items[0].subitems[1].forecolor = new system.windows.media.solidcolorbrush(colors.yellow); 

or

this.rows = ilist(listview.itemssource); // use itemssource data      rows[1].forecolor = new system.windows.media.solidcolorbrush(colors.yellow);  this.listview.items(0).fonttweight = system.windows.controls.fontweights.ultrabold; 

anything of working.

i can make work instructions like:

listviewitem = listview.itemcontainergenerator.containerfromindex(i); listviewitem.background = color; 

but solution if there scroll or change of focus on listview changes on painted rows disapear.

any ideas?.

thanks time.


Comments

Popular posts from this blog

Regex find and replace between <div class="customclass"> and </div> tag -

jpa - Passing entitymanager from reflection method -