<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/sourcegrid/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/sourcegrid/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 25 Jul 2008 00:05:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sourcegrid/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>Resizing Checkbox Cell To zero raises exception</title><link>https://sourceforge.net/p/sourcegrid/bugs/42/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When a Checkbox cell is resized To zero an exception is raised on:&lt;br /&gt;
Viewbase.cs at:&lt;br /&gt;
SourceGrid.Cells.Views.ViewBase.DrawCell()&lt;br /&gt;
In the function call:&lt;br /&gt;
Draw(graphics, rectangle);&lt;/p&gt;
&lt;p&gt;Exception Detail:&lt;br /&gt;
System.ArgumentException was unhandled&lt;br /&gt;
Message="Parameter is not valid."&lt;br /&gt;
Source="System.Drawing"&lt;br /&gt;
StackTrace:&lt;br /&gt;
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)&lt;br /&gt;
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)&lt;br /&gt;
at System.Windows.Forms.ControlPaint.DrawFrameControl(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, Int32 kind, Int32 state, Color foreColor, Color backColor)&lt;br /&gt;
at System.Windows.Forms.ControlPaint.DrawCheckBox(Graphics graphics, Int32 x, Int32 y, Int32 width, Int32 height, ButtonState state)&lt;br /&gt;
at System.Windows.Forms.ControlPaint.DrawCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state)&lt;br /&gt;
at DevAge.Drawing.VisualElements.CheckBox.OnDraw(GraphicsCache graphics, RectangleF area)&lt;br /&gt;
at DevAge.Drawing.VisualElements.VisualElementBase.Draw(GraphicsCache graphics, RectangleF area, RectangleF&amp;amp; drawingArea)&lt;br /&gt;
at DevAge.Drawing.VisualElements.VisualElementBase.Draw(GraphicsCache graphics, RectangleF area)&lt;br /&gt;
at DevAge.Drawing.VisualElements.CheckBoxThemed.OnDraw(GraphicsCache graphics, RectangleF area)&lt;br /&gt;
at DevAge.Drawing.VisualElements.VisualElementBase.Draw(GraphicsCache graphics, RectangleF area, RectangleF&amp;amp; drawingArea)&lt;br /&gt;
at DevAge.Drawing.VisualElements.ContainerBase.OnDrawContent(GraphicsCache graphics, RectangleF area)&lt;br /&gt;
at DevAge.Drawing.VisualElements.ContainerBase.OnDraw(GraphicsCache graphics, RectangleF area)&lt;br /&gt;
at DevAge.Drawing.VisualElements.VisualElementBase.Draw(GraphicsCache graphics, RectangleF area, RectangleF&amp;amp; drawingArea)&lt;br /&gt;
at DevAge.Drawing.VisualElements.VisualElementBase.Draw(GraphicsCache graphics, RectangleF area)&lt;br /&gt;
at SourceGrid.Cells.Views.ViewBase.DrawCell(CellContext cellContext, GraphicsCache graphics, RectangleF rectangle) in C:\C#\SourceGrid4_11\SourceGrid\Cells\Views\ViewBase.cs:line 216&lt;br /&gt;
at SourceGrid.GridVirtual.PaintCell(GraphicsCache graphics, CellContext cellContext, RectangleF drawRectangle) in C:\C#\SourceGrid4_11\SourceGrid\Grids\GridVirtual.cs:line 1418&lt;br /&gt;
at SourceGrid.Grid.PaintCell(GraphicsCache graphics, CellContext cellContext, RectangleF drawRectangle) in C:\C#\SourceGrid4_11\SourceGrid\Grids\Grid.cs:line 519&lt;br /&gt;
at SourceGrid.GridVirtual.OnRangePaint(RangePaintEventArgs e) in C:\C#\SourceGrid4_11\SourceGrid\Grids\GridVirtual.cs:line 1382&lt;br /&gt;
at SourceGrid.Grid.OnRangePaint(RangePaintEventArgs e) in C:\C#\SourceGrid4_11\SourceGrid\Grids\Grid.cs:line 511&lt;br /&gt;
at SourceGrid.GridVirtual.OnPaint(PaintEventArgs e) in C:\C#\SourceGrid4_11\SourceGrid\Grids\GridVirtual.cs:line 1342&lt;br /&gt;
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)&lt;br /&gt;
at System.Windows.Forms.Control.WmPaint(Message&amp;amp; m)&lt;br /&gt;
at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;br /&gt;
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;br /&gt;
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)&lt;br /&gt;
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)&lt;br /&gt;
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;br /&gt;
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)&lt;br /&gt;
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)&lt;br /&gt;
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)&lt;br /&gt;
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)&lt;br /&gt;
at System.Windows.Forms.Application.Run(Form mainForm)&lt;br /&gt;
at AB.Program.Main() in C:\C#\AB\AB\Program.cs:line 18&lt;br /&gt;
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)&lt;br /&gt;
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)&lt;br /&gt;
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()&lt;br /&gt;
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)&lt;br /&gt;
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)&lt;br /&gt;
at System.Threading.ThreadHelper.ThreadStart()&lt;br /&gt;
InnerException: &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dancer42</dc:creator><pubDate>Fri, 25 Jul 2008 00:05:55 -0000</pubDate><guid>https://sourceforge.net55504f7fe8209a3357919bdad63f367446fd64af</guid></item><item><title>Deleting Rows Bugfix</title><link>https://sourceforge.net/p/sourcegrid/bugs/41/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe there's a bug in SourceGrid.Extensions\DataGrid.cs&lt;/p&gt;
&lt;p&gt;The DeleteSelectedRows function deletes rows, one at a time according to their index, in ascending order. But as each row gets deleted, the higher rows "shuffle" down the list to fill the gap.&lt;/p&gt;
&lt;p&gt;So with a list of 10 rows, indexed 0 to 9, deleting rows 2 to 4 will do the following:&lt;/p&gt;
&lt;p&gt;Start with 0,1,2,3,4,5,6,7,8,9&lt;br /&gt;
Removing index 2 leaves 0,1,3,4,5,6,7,8,9&lt;br /&gt;
Removing index 3 at this point *actually removes row 4* leaving 0,1,3,5,6,7,8,9&lt;br /&gt;
Removing index 4 at this point removes row 6, leaving us with&lt;br /&gt;
0,1,3,5,7,8,9 when we actually expected&lt;br /&gt;
0,1,5,6,7,8,9&lt;/p&gt;
&lt;p&gt;The fix is to delete the rows in reverse order. My version of DeleteSelectedRows is attached.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Tim&lt;/p&gt;
&lt;p&gt;See also: &lt;a href="http://www.devage.com/Forum/ViewTopic.aspx?id=a7477110fdcb4f9595d06a89b679368c" rel="nofollow"&gt;http://www.devage.com/Forum/ViewTopic.aspx?id=a7477110fdcb4f9595d06a89b679368c&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Icardi</dc:creator><pubDate>Fri, 11 Jul 2008 22:38:00 -0000</pubDate><guid>https://sourceforge.net5b9721dc1d10737db68da8bfb4cbc49220356e52</guid></item><item><title>MaxSpan is not calculated</title><link>https://sourceforge.net/p/sourcegrid/bugs/40/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The documentation of SourceGrid.Grid.MaxSpan tells me not to change the value since it is calculated automatically.&lt;/p&gt;
&lt;p&gt;First, this value is shared between instances which isnt a nice thing and second, its only initialized to 10 and never changed from there.&lt;/p&gt;
&lt;p&gt;So, do we really need MaxSpan? Yes, I have seen it is being used in some loops and tests. But the implementation just doesnt look right (shared variable across instances).&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander Mueller</dc:creator><pubDate>Tue, 29 Apr 2008 10:18:14 -0000</pubDate><guid>https://sourceforge.netadea7896c8b2dc3143faa2d86a7f4cf7640cbe7c</guid></item><item><title>Improve Selection performance</title><link>https://sourceforge.net/p/sourcegrid/bugs/39/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;What I changed is way of merging&lt;br /&gt;
RangeRegions - if you are sure that region you are&lt;br /&gt;
adding have no intersection with actual region,&lt;br /&gt;
you can omit some checks and increase performance.&lt;br /&gt;
See BOL comments.&lt;br /&gt;
Thanks to bladeblade for this code.&lt;br /&gt;
See also:&lt;br /&gt;
&lt;a href="http://www.devage.com/Forum/ViewTopic.aspx?id=293d9cd8323a4251a9c5eecc59a5f0cf" rel="nofollow"&gt;http://www.devage.com/Forum/ViewTopic.aspx?id=293d9cd8323a4251a9c5eecc59a5f0cf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;See attach&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Icardi</dc:creator><pubDate>Sat, 29 Mar 2008 23:29:46 -0000</pubDate><guid>https://sourceforge.neta9f41f6fa7ab5ee0ed80f4cf44efb1a6340c0b77</guid></item><item><title>Scrolling of large columns</title><link>https://sourceforge.net/p/sourcegrid/bugs/38/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;if a column is stretched too far (out of the visible region) there seems to be a problem. It can't be reduced anymore and the horizontal scroll bar doesn't seem to work correctly.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Icardi</dc:creator><pubDate>Sat, 29 Mar 2008 13:30:20 -0000</pubDate><guid>https://sourceforge.net53cc00f8145141552743fcbf47b1ce20a707a325</guid></item><item><title>Scrollbars scaling strangely</title><link>https://sourceforge.net/p/sourcegrid/bugs/37/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;There is a problem when calculating the scroll bar pages. I must calculate the pages probably based on the visible rows (an average value).&lt;/p&gt;
&lt;p&gt;See also message from lupokehl42:&lt;br /&gt;
&lt;a href="http://www.devage.com/Forum/ViewTopic.aspx?id=e7df9aabb1274635b90acea511018712" rel="nofollow"&gt;http://www.devage.com/Forum/ViewTopic.aspx?id=e7df9aabb1274635b90acea511018712&lt;/a&gt;&lt;br /&gt;
""""""""""""""""""""""&lt;br /&gt;
I just did some tests with the Grid (latest Version, 4.10) and found that its scrollbars behave strangely.&lt;br /&gt;
The attached screenshot shows the demo program that comes with SourceGrid. Only one line (the last one) is out of view. But the scrollbar makes it look as if about one third of the contents were out of view.&lt;br /&gt;
This makes using the Grid very weird as soon as scrolling is involved, because I always feel as if there was much more data.&lt;/p&gt;
&lt;p&gt;After some digging in the code, I think I found the problem.&lt;/p&gt;
&lt;p&gt;CustomScrollControl.LoadScrollArea sets verticalPage and horizontalPage. These values are later fed to the scrollbars as LargeChange, so they should tell how many rows/columns are visible at a time.&lt;br /&gt;
The actual values come from GridVirtual.SetScrollArea(). And for reasons I do not understand, they are calculated as Math.Max(Rows.Count / 10, 1) and Math.Max(Columns.Count / 10, 1), respectively.&lt;br /&gt;
This makes the values far too small, which is why the scrollbars look as if the actual visible window was much smaller.&lt;/p&gt;
&lt;p&gt;Replacing the function with the following code did the trick (although I'm still off by a bit because this does not consider the scrollbar sizes):&lt;/p&gt;
&lt;p&gt;private void SetScrollArea()&lt;br /&gt;
{&lt;br /&gt;
// Calculate total height in pixels&lt;br /&gt;
int vSize = 0;&lt;br /&gt;
for (int i = 0; i &amp;lt; Rows.Count; i++)&lt;br /&gt;
vSize += Rows.GetHeight(i);&lt;/p&gt;
&lt;p&gt;// Set vertPage as the average number of visible rows&lt;br /&gt;
int vertPage = (vSize &amp;gt; 0) ? Rows.Count * this.Height / vSize : 1;&lt;/p&gt;
&lt;p&gt;// Calculate total width in pixels&lt;br /&gt;
int hSize = 0;&lt;br /&gt;
for (int i = 0; i &amp;lt; Columns.Count; i++)&lt;br /&gt;
hSize += Columns.GetWidth(i);&lt;/p&gt;
&lt;p&gt;// Set horPage as the average number of visible columns&lt;br /&gt;
int horPage = (hSize &amp;gt; 0) ? Columns.Count * this.Width / hSize : 1;&lt;/p&gt;
&lt;p&gt;LoadScrollArea(vertPage, horPage);&lt;br /&gt;
}&lt;br /&gt;
"""""""""""""""""""""&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Icardi</dc:creator><pubDate>Sat, 17 Nov 2007 10:16:48 -0000</pubDate><guid>https://sourceforge.net09e64d1a4bbf6a61ab20b8101ba3b16b38e8ea84</guid></item><item><title>Multiselection bug after a dialog</title><link>https://sourceforge.net/p/sourcegrid/bugs/36/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;double-click on a cell to change its value. When I click on any other cell to exit (and close the opened MsgBox) SourceGrid starts to begin some kind of MultiCellSelection beginning from the cell I clicked to exit the first one.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Icardi</dc:creator><pubDate>Wed, 31 Oct 2007 23:15:29 -0000</pubDate><guid>https://sourceforge.net29e38dd386c267358ff554ec060ae8e9d9c34887</guid></item><item><title>LinkedControl hide fixed rows/column</title><link>https://sourceforge.net/p/sourcegrid/bugs/35/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;LinkedControls hide fixed rows or columns when scrolling.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Icardi</dc:creator><pubDate>Tue, 23 Oct 2007 09:27:47 -0000</pubDate><guid>https://sourceforge.net7bd0e907c63585e9b9aaa6f6056beccf41524ed2</guid></item><item><title>Scrolling bug with hidden rows/columns</title><link>https://sourceforge.net/p/sourcegrid/bugs/34/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I noticed another bug in scrolling, related with 'hidden' rows.&lt;br /&gt;
Imagine I have grid with 100 rows, and rows between 50 and 80 are 'hidden'. When I scroll to 50th row, everything is fine, but to scroll to next visible row (80th) i have to scroll down 10 times (it depends from Windows configuration). The problem is obviously that scrolling detects 'hidden' rows, but I don't know how to fix it.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Davide Icardi</dc:creator><pubDate>Tue, 09 Oct 2007 20:16:25 -0000</pubDate><guid>https://sourceforge.netb12022adfb661eac14bd37d82c81f06230f2e701</guid></item><item><title>DataGrid error when changing DataSource</title><link>https://sourceforge.net/p/sourcegrid/bugs/33/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When adding new DataSource with new DataBoundView without removing and again adding DataGridColumns. DataGrid in all cells displays error that "column X does not belong to table Y"&lt;/p&gt;&lt;/div&gt;</description><pubDate>Wed, 03 Oct 2007 10:19:37 -0000</pubDate><guid>https://sourceforge.net93360ce6493f624479512affff6d98a0637e69ca</guid></item></channel></rss>