下面是一段程序! private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
{
Form2 frmJobSched = new Form2();
odbcDataAdapter1.Fill(frmJobSched.dataSet11);
frmJobSched.Show();
//Application.Run(new Form2());
}
frmJobSched.Show();运行后,会列出很多很数据,我的问题是!
在这些数据的每一行, 有时间1,,和 时间2,, 如果 时间2 比 时间1 晚, 那么那一行这改为红色,,怎么处理这个问题呀!! 谢谢!!!
{
Form2 frmJobSched = new Form2();
odbcDataAdapter1.Fill(frmJobSched.dataSet11);
frmJobSched.Show();
//Application.Run(new Form2());
}
frmJobSched.Show();运行后,会列出很多很数据,我的问题是!
在这些数据的每一行, 有时间1,,和 时间2,, 如果 时间2 比 时间1 晚, 那么那一行这改为红色,,怎么处理这个问题呀!! 谢谢!!!
在这些数据的每一行, 有时间1,,和 时间2,, 如果 时间2 比 时间1 晚, 那么那一行这改为红色,,怎么处理这个问题呀!! 谢谢!!!你在frmJobSched用什么控件来显示你的数据,如果是DataGrid的话,可以参看
http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q745q如果是其它的控件,那你自行作判断,修改backcolor属性即可。