/// <summary>
		///		Añade una columna
		/// </summary>
		public void AddColumn(int intWidth, string strText, ListViewColumnType intColumnType)
		{ ColumnHeader objColumn = Columns.Add(strText, intWidth);
		
				objColumn.Tag = (int) intColumnType;
				if (intColumnType == ListViewColumnType.Number)
					objColumn.TextAlign = HorizontalAlignment.Right;
		}
Ejemplo n.º 2
0
        /// <summary>
        ///		Añade una columna
        /// </summary>
        public void AddColumn(int intWidth, string strText, ListViewColumnType intColumnType)
        {
            ColumnHeader objColumn = Columns.Add(strText, intWidth);

            objColumn.Tag = (int)intColumnType;
            if (intColumnType == ListViewColumnType.Number)
            {
                objColumn.TextAlign = HorizontalAlignment.Right;
            }
        }
Ejemplo n.º 3
0
 private void CheckData()
 {
     if (this.listView != null && this.column >= 0 && this.column < this.listView.Columns.Count)
     {
         this.columnType = this.listView.GetColumnType(this.column);
     }
     else
     {
         this.column     = -1;
         this.columnType = ListViewColumnType.String;
     }
 }
		/// <summary>
		///		Añade la columna ajustando al mayor elemento de texto
		/// </summary>
		public void AddColumn(string strText, ListViewColumnType intColumnType)
		{ AddColumn(-2, strText, intColumnType);
		}
Ejemplo n.º 5
0
 /// <summary>
 ///		Añade la columna ajustando al mayor elemento de texto
 /// </summary>
 public void AddColumn(string strText, ListViewColumnType intColumnType)
 {
     AddColumn(-2, strText, intColumnType);
 }