• 大小: 0.01M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: GridView  拖拽  DataGridView  d  

资源简介

DataGridView到DataGridView的拖拽的例子

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender EventArgs e)
        {
            for(int i = 0; i < 3; i++)
            {
                object[] a = {  (3 * i).ToString() (3 * i + 1).ToString() (3 * i + 2).ToString() };
                source_DataGridView.Rows.Add(a);
            }

            for (int i = 1; i <= 2; i++)
            {
                object[] a = { (10 * i).ToString() (10 * i + 1).ToString() 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3809  2009-11-01 21:51  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\DragDropBetweenDataGridViews.csproj

     文件       2224  2009-11-01 21:51  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\MainForm.cs

     文件       7252  2009-11-01 21:51  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\MainForm.Designer.cs

     文件       6918  2009-11-01 21:36  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\MainForm.resx

     文件        519  2009-11-01 21:51  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\Program.cs

     文件       1484  2009-11-01 20:49  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\Properties\AssemblyInfo.cs

     文件       2877  2009-11-01 20:49  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\Properties\Resources.Designer.cs

     文件       5612  2009-11-01 20:49  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\Properties\Resources.resx

     文件       1109  2009-11-01 20:49  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\Properties\Settings.Designer.cs

     文件        249  2009-11-01 20:49  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\Properties\Settings.settings

     文件        974  2009-11-01 21:53  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews.sln

    ..A..H.     15360  2009-11-01 21:53  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews.suo

     目录          0  2009-11-01 22:10  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\bin\Debug

     目录          0  2009-11-01 22:10  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\obj\Debug

     目录          0  2009-11-01 21:51  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\bin

     目录          0  2009-11-01 20:49  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\obj

     目录          0  2009-11-01 20:49  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews\Properties

     目录          0  2009-11-01 21:51  Sample_DragDropDataGridViews\DragDropBetweenDataGridViews

     目录          0  2009-11-01 22:10  Sample_DragDropDataGridViews

----------- ---------  ---------- -----  ----

                48387                    19


评论

共有 条评论