日期:2014-05-17 浏览次数:20813 次
int k,m;
for(k=0;k<dataGridView.RowCount;++k)
{
for (m = 1; m<dataGridView.RowCount;++m )
{
if ((m>k)&&(dataGridView.Rows[k].Cells["keyword"].Value == dataGridView.Rows[m].Cells["keyword"].Value))
{
dataGridView.Rows[m].Cells["keyword"].Value = null;
}
}
}
for(int k=0;k<dataGridView.RowCount;k++)
{
for (int m = k+1; m<dataGridView.RowCount;m++ )
{
if ((dataGridView.Rows[k].Cells[0].Text == dataGridView.Rows[m].Cells[0].Text))
{