KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a WinForms application with a DataGridView , which DataSource is a DataTable (filled from SQL Server) which has a column of xxx . The following code raises the exception of ArgumentException was unhandled. Column named xxx cannot be found. foreach (DataGridViewRow row in Rows) { if (object.Equals(row.Cells["xxx"].Value, 123)) } Is it possible to get the cell values by column name?
Tags (comma-separated)
Save Edits
Cancel