It's been a while since I've coded desktop apps but this has really got me confused.
I have an if statement that I can't get in to.I know that the text of the column is "CheckOutID" and I can even confirm this in the immediate windowCode:if(lvwSearch.Columns[lvwSearch.Columns.Count-1].Text == "CheckOutID") { string test = "Why can't i get here!"; }Yet the if statement doesn't seem to equate it to true and won't execute code contained within.Code:lvwSearch.Columns[lvwSearch.Columns.Count-1].Text "CheckOutID" lvwSearch.Columns[lvwSearch.Columns.Count-1].Text == "CheckOutID" true
Any idea's?




Reply With Quote