我在数据表中有一个列,当从数据库中获取时,其值为 True 或 False。它在网格视图中显示时显示复选框。但是如果值为真,我想显示“是”,如果值为假,我想显示“否”。我怎样才能做到这一点??
DataTable dt = DBAction.ExecuteQuery(command,zzz.id);
if (dt != null && dt.Rows.Count > 0)
{
// i want to change here
gridTagHistory.DataSource =dt;
this.ShowDialog();
}