Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DataRepeater Control Please Help

$
0
0

My datarepeater control is bound to a datatable

The datatable has several columns (name,address,contact,status)

I dragged the name, address and contact into the datarepeater control.

I also dragged an OvalShape named OvalShape1 and the set the FillColor to Blue. I adjusted the shape so that it will look like small blue circle.

the 'status' column in the datatable can only have two values which is "Active" and "Inactive"

what I want to achieve is that the ovalshape become gray if the underlying data of the datarepeateritem has "Inactive" value in the status column.

I want to change the color of the ovalshape inside each of the datarepeateritems based on the value of the datarow column in which it is bound to.

How can I achieve this? or is it possible to do?

Thanks and GodBless



Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>