Clipboard copy problem.

Jul 18, 2012 at 7:19 AM

After I copy and paste multiple cells will cause an problem in "sourcegrid 4.4".

Perhaps it happen organically when the rows and columns are counted.

I think, the source code is shown below will be modified.

filename : RangeData.cs

        protected static string StringArrayToString(string[,] values)

                 .......

                for (int c = 0; c < nc; ++c)
                {
                    builder.Append(values[r, c]);
                    if (c != nr - 1)                      ---------------->  if (c != nc - 1)
                        builder.Append('\t');
                }

                if (r != nr - 1)
                    builder.Append("\x0D\x0A");
            }

            return builder.ToString();