标签:cell var 风格 raft nbsp idv dea play style
gridView1.RowCellStyle += (s, e) => { var data = gridView1.GetRow(e.RowHandle); var card = data as I_Craft_Card; if (!card.DoMLackFlag.HasValue ) return; if (card.DoMLackFlag == 0) return; if (card != null) { if (e.Column.FieldName == "ter1" && (card.DoMLackFlag & 0x00000001) >0 ) { e.Appearance.BackColor = Color.Red; } if (e.Column.FieldName == "ter2" && (card.DoMLackFlag & 0x00000002) >0 ) { e.Appearance.BackColor = Color.Red; } if (e.Column.FieldName == "length" && (card.DoMLackFlag & 0x00000010) > 0) { e.Appearance.BackColor = Color.Red; } } };
标签:cell var 风格 raft nbsp idv dea play style
原文地址:http://www.cnblogs.com/wdfrog/p/7605135.html