If you give your rows a unique id it's pretty easy
<select onSelectIndexChange="HighLightRow(this)"><option.. ..>...</select>
<table>
<tr id="1">
<td></td>
<td></td>
</tr>
<tr id="2">
<td></td>
<td></td>
</tr>
<tr id="3">
<td></td>
<td></td>
</tr>
</table>
notice they don't have a runat="Server"....they are just client-side Ids..
<script language="javascript">
function HighLightRow(sel){
var tr = null;
switch (sel.options[sel.selectedIndex].value){
case "1":
tr = document.getElementsById("1");
break;
case "blah";
tr = document.getElementsById("2");
break;
}
var tds = td.getElementsByTagName("td");
for (var i = 0; i < tds.length; ++i){
tds[i].className = 'highlightedClass';
}
}
</script>
something like that ought to work.
"IGotYourDotNet" <IG************@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
I've seen stuff on changing row colors based on something, i've seen how
to create columns on the fly, how can I change an color of the entire column
based on certain criteria?
I need to change the color (highlight) an entire column(s) of my grids
based on what the user selected in the drop down