DataGridTableStyle is valid in windows application. but you are working in web applications that why you are getting it and it is giving errors. anyways next time post your questions in asp.net forum....you have currently posted this question in vb.net ..............thats why the person has misunderstood the scenario and he has given this answer.....anyways it happens.. hope you have found solution to your problem. Regards, Kapil Thakur (Where's there is Kapil , there is a way) - thakur.kapil@gmail.com