C# Programming
08-27-2009, 04:23 PM
hi guys
i have a grid in whihc i have two columns these are check box columns
now i want to iterate all the rows of grid and to perform some action but only if one of the two check box columns is active or checked else i am skipping the current row
i am doing the floowing but it is not working correctly
(!(Convert.ToBoolean(ugrRow.Cells["Add to device "].Value)) && Convert.ToBoolean(ugrRow.Cells["Discard"].Value)))
continue;
else
{perform logic here .}
Tauseef A Khan
MCP Dotnet framework 2.0.
i have a grid in whihc i have two columns these are check box columns
now i want to iterate all the rows of grid and to perform some action but only if one of the two check box columns is active or checked else i am skipping the current row
i am doing the floowing but it is not working correctly
(!(Convert.ToBoolean(ugrRow.Cells["Add to device "].Value)) && Convert.ToBoolean(ugrRow.Cells["Discard"].Value)))
continue;
else
{perform logic here .}
Tauseef A Khan
MCP Dotnet framework 2.0.