我无法在 DataGridView 上显示货币格式。你们能看一下这段代码吗?
private void dataGridView1_DataBindingComplete(object sender,
DataGridViewBindingCompleteEventArgs e)
{
objPreview.dataGridView1.Columns["Debit"].DefaultCellStyle.Format = "c";
objPreview.dataGridView1.Columns["Credit"].DefaultCellStyle.Format = "c";
}