private void dgv_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{}//修改
DataGridViewCellStyle sty=new DataGridViewCellStyle();
dgv.Rows[e.RowIndex].DefaultCellStyle = sty;
private void dgv_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{}//修改
DataGridViewCellStyle sty=new DataGridViewCellStyle();
dgv.Rows[e.RowIndex].DefaultCellStyle = sty;