Hello:
I have the following statement and I am getting an error. I probably have the wrong syntax. Can someone tell me what I did wrong?
if (dataGridViewIP_Login.Rows[i].Cells["ColumnPassword"].Value == textBoxUser_ID.Text)
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Feb 28, 2010, 12:31 AM
you need to convert value to String then you can compare it with other string
if (dataGridViewIP_Login.Rows[i].Cells["ColumnPassword"].Value.ToString() == textBoxUser_ID.Text)
Now it will work !! :)
GustavoPosted Feb 28, 2010, 12:46 AM
It worked... Thanks... I really appreciate it.