title: Is that possible to create sharepoint list view as gant chart view programically?
body: <p>Is that possible to create sharepoint list view as gant chart view programically? I created list view programically refer below code</p>
  
  <pre><code>         var web = (SPWeb)properties.Feature.Parent;
  
          SPList list = web.GetList(SharedDocumentListUrl);
          SPViewCollection allviews = list.Views;
          string viewName = "Document Review Summary";
          System.Collections.Specialized.StringCollection viewFields = new System.Collections.Specialized.StringCollection();
          viewFields.Add(EYWorkProductIndicator);
          viewFields.Add(EYPaperProfile);
          viewFields.Add(DocIcon);
                     string myquery = "&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='Status' /&gt;&lt;Value Type='Choice'&gt;In Review&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;"
             + "&lt;OrderBy&gt;&lt;FieldRef Name='LinkFilename' Ascending='True' /&gt;&lt;/OrderBy&gt;";
          SPView customView = allviews.Add(viewName, viewFields, myquery, 100, true, false);
          customView.XslLink = "eymain.xsl";
          customView.Update();
  </code></pre>