顶 放两个listview何如 :)

解决方案 »

  1.   

    你在控件定位方法中用锚定位试了吗!?
    namespace Microsoft.Samples.WinForms.Cs.Anchoring {
        using System;
        using System.ComponentModel;
        using System.Drawing;
        using System.Windows.Forms;    public class Anchoring : System.Windows.Forms.Form {
            /// <summary>
            ///    必需的设计器变量。
            /// </summary>
            private System.ComponentModel.Container components;
            protected internal System.Windows.Forms.Button button1;
            protected internal System.Windows.Forms.TextBox textBox1;        public Anchoring() {
                //
                // Windows 窗体设计器支持所必需的
                //
                InitializeComponent();            //为 button1 启动事件
                button1.Click += new System.EventHandler(button1_Click);            this.MinimumSize = new Size(392, (117 + SystemInformation.CaptionHeight));
            }        /// <summary>
            ///    清理正在使用的所有资源。
            /// </summary>
            protected override void Dispose(bool disposing)
            {
               if (disposing) {
                    if (components != null) {
                        components.Dispose();
                    }
               }
               base.Dispose(disposing);
            }        /// <summary>
            ///    设计器支持所必需的方法,不要使用
            ///    代码编辑器修改此方法的内容。
            /// </summary>
            private void InitializeComponent()
            {
                this.components = new System.ComponentModel.Container ();
                this.button1 = new System.Windows.Forms.Button ();
                this.textBox1 = new System.Windows.Forms.TextBox ();
                this.Text = "锚定示例";
                this.AutoScaleBaseSize = new System.Drawing.Size (5, 13);
                this.ClientSize = new System.Drawing.Size (392, 117);
                button1.Size = new System.Drawing.Size (120, 40);
                button1.TabIndex = 1;
                button1.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
                button1.Location = new System.Drawing.Point (256, 64);
                button1.Text = "请单击我!";
                textBox1.Location = new System.Drawing.Point (16, 24);
                textBox1.Text = "Hello Windows Forms World";
                textBox1.TabIndex = 0;
                textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
                textBox1.Size = new System.Drawing.Size (360, 20);
                this.Controls.Add (this.button1);
                this.Controls.Add (this.textBox1);
            }        private void button1_Click(object sender, System.EventArgs e) {
                MessageBox.Show("文本是:'" + textBox1.Text + "'");
            }        /// <summary>
            /// 应用程序的主入口点。
            /// </summary>
            [STAThread]
            public static void Main(string[] args) {
                Application.Run(new Anchoring());
            }    }
    }
      

  2.   

    恩..
    用算法把listview中的第1列随你移动而置换成第2,第3列,其他的列相应替换,如何
      

  3.   

    如果在listview的第一列绑定一个listbox,会不会实现上面的效果?
      

  4.   

    极度关注!++++++++++++++++++++++++++++++++++++
    ------------------------------------
    如果想交流,联系 275037227 (qq)
    衷心感谢 CSDN 的朋友们给我的帮助!
    ------------------------------------
    抵制日货!!!!!!!!!!!!!!!!!!!!!!!!!
    ------------------------------------
    ++++++++++++++++++++++++++++++++++++
      

  5.   

    自定义一个控件,从listView继承,然后,放一个label上去,样式大小设的维妙维肖像一个Item或是Tittle,放在那个地方:我不说你也知道。把它的值同listview第一个值显示的一样,就OK了,哈哈,简单吧.
      

  6.   

    放两个ListView 呀,第一个ListView 只绑定第一列,第二列就绑定别的