I'm with GHB. Use a barrette or a band or something. That goes for guys, too! When I'm working on something that requires both my hands I usually tie my hair back and if a few strands become loose I blow them back or use the back of my arm to push them up. I like to garden so I usually wear a bandana.
But dirty hair is just yucky.