I am selecting data rows from a datatable. I want to print each attributes of the row, with the code below. It works fine.
for(int i=0; i < selected_row.ItemArray.Length; i++)
{
if(selected_row.ToString().Trim() == "")
{
}
else
{
str = str + selected_row.ToString() + "\r\n";
}
}
However, I do not want to print the attribute if it is selected_row["EmailAddress"] or if it is selected_row["LastName"]
How can I build my if statement, so as to not to print attributes in the EmailAddress and LastName column?
Can anyone help?
Thank you, Marika
for(int i=0; i < selected_row.ItemArray.Length; i++)
{
if(selected_row.ToString().Trim() == "")
{
}
else
{
str = str + selected_row.ToString() + "\r\n";
}
}
However, I do not want to print the attribute if it is selected_row["EmailAddress"] or if it is selected_row["LastName"]
How can I build my if statement, so as to not to print attributes in the EmailAddress and LastName column?
Can anyone help?
Thank you, Marika