If we want to customize the layout a webpart – say don’t want the border and title, or only need border or only need title etc, we will do it through UI by setting the Chrome type of the corresponding webpart.
Here I just want to know how we can set this one by default whenever we create custom webpart.
Here I just want to know how we can set this one by default whenever we creating custom webpart. We can accomplish this by setting the ChromeType property of the webpart in the CreateChildControls() method. Here is the sample code snippet.
PingBack from http://blog.a-foton.ru/index.php/2008/11/15/how-to-create-a-webpart-with-chrome-type/