I was able to use
if (0 == String.Compare(dc.DataType.ToString().Trim(), "System.Byte[]"))
to determine the datatype. I stored it's table column index in a list<int>, and just deleted that column.
Thanks,
Jess
List<int> theseAreBinaryData = new List<int>();
foreach (DataColumn dc in dt.Columns)
{
if (0 == String.Compare(dc.DataType.ToString().Trim(), "System.Byte[]"))
{
theseAreBinaryData.Add(dt.Columns.IndexOf(dc.ColumnName));
}
}
if (theseAreBinaryData.Count > 0)
{
foreach (int i in theseAreBinaryData)
{
dt.Columns.RemoveAt(i);
}
}
dataGridView.DataSource = dt;