110,534
社区成员
发帖
与我相关
我的任务
分享
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 = "未收租";
}
}