日期:2014-05-17 浏览次数:20795 次
private void hiredRoomInfoDataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (hiredRoomInfoDataGridView.Columns[e.ColumnIndex].Name.Equals("ReceiveStatus"))
{
if (int.Parse(e.Value.ToString()) == 1)
e.Value = "已收租";
else
e.Value = "未收租";
}
}