日期:2014-05-17 浏览次数:20863 次
private void dataGridView1_CellFormatting(object sender,
System.Windows.Forms.DataGridViewCellFormattingEventArgs e)
{
if (dataGridView1.Columns[e.ColumnIndex].Name.Equals("Sex"))
{
if(e.Value==1)
e.Value="男";
else
e.Value="女";
}
}