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

c# winform if datagrid cell equals Bob next datagrid cell returns Male

$
0
0

I hope I can explain this simply, I have  a Datagrid with several columns. I want to write, if this column [2] has Bob in it than column [3] returns Male. The Excel formula would look like this =IF (Y2 = "Bob"),"Male",0), where Y2 is column [2] Bob  and column [3] returned Male.

what is this function called?


Booney440



Viewing all articles
Browse latest Browse all 2535

Trending Articles



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