我遇到的问题是DataGridView1属性框在我们的Windows应用程序2008中显示为空白。 并且在另一个窗口中,datagridview1属性框显示为空白。 所以请告诉我解决这个问题。
string qryproceedip = "Select COUNT(ProceedIP)TotalIPCounts,convert(time(7), DateAdd(SECOND, SUM(DATEDIFF(SECOND,(worktime),(deletetime))),0),108) as actualtime " +
" from ipinfo where username='" + username.Trim() + "' and workdate='" + todaylogindate.Trim() + "'";
SqlCommand cmdip = new SqlCommand(qryproceedip, mycon);
mycon.Open();
SqlDataAdapter sdaip = new SqlDataAdapter(cmdip);
DataTable dtip = new DataTable();
sdaip.Fill(dtip);
dataGridView1.DataSource = dtip;
mycon.Close();
dtip.Clear();
tdt.Clear();