![]() ![]() ![]() ![]() |
|||||
|
|||||
樓主 Rubio ![]()
![]() |
System.ArgumentException: '找不到名為 Connect_Status 的資料行。 Arg_ParamName_Name' 想請問為什麼?是因為刷新的問題嗎? 但資料並沒有不見 請各位先進解惑 謝謝 以下為程式碼 var reply = e.Reply; DataGridViewRow row = e.UserState as DataGridViewRow; DataGridViewCell PingStat = row.Cells["Connect_Status"]; if (reply != null) { switch (reply.Status) { case IPStatus.Success: PingStat.Value = string.Format("Reply from {0}: bytes={1} time={2}ms TTL={3}", reply.Address, reply.Buffer.Length, reply.RoundtripTime, reply.Options.Ttl); break; case IPStatus.TimedOut: PingStat.Value = "Connection has timed out..."; break; default: PingStat.Value = string.Format("Ping failed: {0}", reply.Status.ToString()); break; } |
1樓 |
您算是重複發問囉
請看(避免重複回答) https://www.blueshop.com.tw/board/FUM20050124192253INM/BRD202107071717179KB.html 事件裡面的參數e有不同的意思 您是否先提供是在datagridview 哪個事件裡面寫的程式? var reply = e.Reply; DataGridViewRow row = e.UserState as DataGridViewRow;
本篇文章回覆於2021-07-09 08:26
== 簽名檔 ==
--未登入的會員無法查看對方簽名檔-- |
回覆 |
如要回應,請先登入. |