<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Make a simple grid with cell-button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Make a simple grid with cell-button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 02 May 2026 00:06:12 +0000</pubDate>
  <lastBuildDate>Thu, 01 Aug 2013 12:08:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=21828</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Make a simple grid with cell-button : Good morning,anyone has an examplewith...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21828&amp;PID=71471&amp;title=make-a-simple-grid-with-cellbutton#71471</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8161">francamato</a><br /><strong>Subject:</strong> 21828<br /><strong>Posted:</strong> 01 August 2013 at 12:08pm<br /><br />Good morning,&nbsp;<div><br><div><span id="result_" ="short_text"="" lang="en"><span ="hps"="">anyone has</span> <span ="hps"="">an example</span></span>&nbsp;with sources to implement a very simple grid, like the one in the attached image.</div><div><br><div><img src="http://forum.codejock.com/uploads/8161/grid1.bmp" height="84" width="530" border="0" /></div><div><br><div><span ="hps"=""><span id="result_" =""="" lang="en"><span ="hps"="">Is</span> <span ="hps"="">a few weeks</span> <span ="hps"="">I use</span> <span ="hps"="">this Suite</span> <span ="hps"="">Pro</span> <span ="hps"="">2013, and t</span></span></span><span ="hps"="">his component is</span> <span ="hps"="">really</span> <span ="hps"="">powerful and complete</span>, but&nbsp;I can not find the way to make one or more columns fixed (<span id="result_" ="short_text"="" lang="en"><span ="hps"="">button with</span> <span ="hps"="">icon</span></span>) before the 0th column of datagrid...</div><div><br></div><div><span id="result_" =""="" lang="en"><span ="hps"="">I have made</span> <span ="hps"="">this code</span><span =""="">, but the result</span> <span ="hps"="">is very disappointing</span></span></div><div><br></div><div>'-------------------------------------------------------</div><div><div>Private Sub Form_Load()</div><div>Dim i As Integer</div><div>Dim j As Integer</div><div><br></div><div>&nbsp; &nbsp; With ReportControl</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Move 120, 120</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .AutoColumnSizing = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .AllowColumnRemove = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .FocusSubItems = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .ShowRowFocus = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .AllowEdit = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .BorderStyle = xtpBorderFlat</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .EditOnClick = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.FixedRowHeight = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.ColumnStyle = xtpColumnFlat</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.VerticalGridStyle = xtpGridSolid</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.FreezeColsDividerStyle = xtpReportFixedRowsDividerBold</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.FreezeColsDividerColor = RGB(90, 90, 90)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.GridLineColor = RGB(140, 140, 140)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.GrayIfDisable = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .PaintManager.HighlightBackColor = RGB(120, 130, 100)</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; For i = 0 To 5</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Columns.Add i, "Col " &amp; Chr$(65 + i), 150, False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If i = 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Alignment = xtpAlignmentCenter</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Sortable = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).AllowRemove = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).AutoSize = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Editable = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Resizable = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Width = 100</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).AllowDrag = False</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Sortable = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Editable = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.Columns(i).Resizable = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Next i</div><div>&nbsp; &nbsp; &nbsp; &nbsp; For i = 0 To 20</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; With .Records.Add</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>.AddItem Chr$(65) &amp; i</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Item(0).BackColor = ReportControl.PaintManager.CaptionBackColor</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Set Button = .Item(0).ItemControls.AddButton(-1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Enable = True</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Alignment = xtpReportItemControlUnknown</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For j = 1 To 5</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .AddItem Chr$(65 + j) &amp; i</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next j &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End With</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Next i</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .Populate</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .FreezeColumnsCount = 3</div><div>&nbsp; &nbsp; &nbsp; &nbsp; .DisableReorderColumnsCount = 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; End With</div><div>&nbsp; &nbsp;&nbsp;</div><div>End Sub</div><div><br></div><div>Private Sub ReportControl_ColumnOrderChangedEx(ByVal Column As XtremeReportControl.IReportColumn, ByVal Reason As XtremeReportControl.XTPReportColumnOrderChangedReason)</div><div>&nbsp; &nbsp;If Reason = xtpReportColumnOrderChanged Then</div><div>&nbsp; &nbsp; &nbsp; If Column.Index &gt; ReportControl.FreezeColumnsCount Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Column.Move (Column.ItemIndex)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ReportControl.Redraw</div><div>&nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp;End If</div><div>End Sub</div></div><div>'-------------------------------------------------------</div><div><br></div><div><br></div><div><br></div><div>I hope it is possible to do this very simple thing&nbsp;<img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" />&nbsp;, &nbsp;thank you in advance</div><div><br></div><div>A.Francesco</div></div></div></div>]]>
   </description>
   <pubDate>Thu, 01 Aug 2013 12:08:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21828&amp;PID=71471&amp;title=make-a-simple-grid-with-cellbutton#71471</guid>
  </item> 
 </channel>
</rss>