private void AddLog(NetLog netLog) { int i = gridLog.Rows.Add(netLog.TimeAsString(), netLog.LogMessage); _logToGridRows[netLog] = gridLog.Rows[i]; gridLog.ClearSelection(); }