111,094
社区成员




byte[] strarr;
int rowcount = 0;
string value="";
foreach (DataGridViewRow dr in this.dataGridView1.Rows)
{
DataGridViewCheckBoxCell cbx = dr.Cells[0] as DataGridViewCheckBoxCell;
strarr = new string[rowcount];
try
{
if ((bool)cbx.Value)
{
rowcount++;
value = (string)dr.Cells[1].Value;
}
//strarr.ToList<string>().Add(value);
//strarr.ToArray();
}
catch
{
return;
}
}
strarr.ToList<string>().Add(value);
strarr.ToArray();
List<byte> strarr = new List<byte>() ;
int rowcount = 0;
string value = "";
foreach (DataGridViewRow dr in this.dataGridView1.Rows)
{
DataGridViewCheckBoxCell cbx = dr.Cells[0] as DataGridViewCheckBoxCell;
strarr = new string[rowcount];
try
{
if ((bool)cbx.Value)
{
rowcount++;
value = (string)dr.Cells[1].Value;
}
strarr.Add(value);
}
catch
{
return;
}
}