Becoming One After God’s Own Heart

When God’s heart was grieved by how Israel’s first king walked before Him, He said that He would find another to take his place – “a man after His own heart.” What was it about David that drew the attention of heaven? What made David a man after God’s own heart, and how can we become a people after His own heart as well?