COme posso gestire delle griglie in c?