그림 추가하기...




    ' declare a DataTable to contain the program generated data
    Dim dataTable As New DataTable("Cells")

    ' create and add a Column
    Dim colWork As New DataColumn("Name", GetType(String))
    dataTable.Columns.Add(colWork)

    ' create and add a  column
    colWork = New DataColumn("Picture", GetType(Byte()))
    dataTable.Columns.Add(colWork)

    ' add some rows
    Dim row As DataRow = dataTable.NewRow()
    row("Name") = "me2.jpg"
    Dim aBitMap As Bitmap
    row("Picture") = aBitMap.FromFile(AppPath() + "..\me2.jpg")
    dataTable.Rows.Add(row)

    ' add some rows
    row = dataTable.NewRow
    row("Name") = "Amanda eating mashed potatos 06.JPG"
    row("Picture") = aBitMap.FromFile(AppPath() + "..\Amanda eating mashed potatos 06.JPG")
    dataTable.Rows.Add(row)
    Return dataTable













Posted by woojja
private void ultraGridSyncrhonousSorting_BeforeRowFilterChanged(object sender, Infragistics.Win.UltraWinGrid.BeforeRowFilterChangedEventArgs e)
  {
   // If the ProcessMode is set to Synchronous or SynchronousExpanded then the
   // UltraGrid will filter the rows before firing AfterSortChange. This lets you
   // show a wait cursor.
   ProcessMode mode = (ProcessMode)this.ultraComboEditorSyncrhonousSorting_ProcessMode.Value;
   e.ProcessMode = mode;

   bool showWaitCursor = this.ultraCheckEditorSyncrhonousSorting_ShowWaitCursor.Checked;
   if ( showWaitCursor )
   {
    // Change the cursor to WaitCursor. We are resetting the cursor in the
    // AfterRowFilterChanged event handler below.
    System.Windows.Forms.Cursor.Current = Cursors.WaitCursor;
   }
  }

  #endregion // ultraGridSyncrhonousSorting_BeforeRowFilterChanged

  #region ultraGridSyncrhonousSorting_AfterRowFilterChanged

  private void ultraGridSyncrhonousSorting_AfterRowFilterChanged(object sender, Infragistics.Win.UltraWinGrid.AfterRowFilterChangedEventArgs e)
  {
   System.Windows.Forms.Cursor.Current = Cursors.Default;
  }

  #endregion // ultraGridSyncrhonousSorting_AfterRowFilterChanged

  #region ultraGridSyncrhonousSorting_BeforeRowFilterDropDownPopulate

  private void ultraGridSyncrhonousSorting_BeforeRowFilterDropDownPopulate(object sender, Infragistics.Win.UltraWinGrid.BeforeRowFilterDropDownPopulateEventArgs e)
  {
   // Add our own custom filter conditions.

   // Set Handled to true to cause the UltraGrid to skip adding its own filter items.
   e.Handled = true;

   ColumnFilter cf;

   for ( int i = 0; i < 10; i++ )
   {
    cf = new ColumnFilter( e.Column, FilterLogicalOperator.And );
    int val1 = i * 100;
    int val2 = ( 1 + i ) * 100;
    cf.FilterConditions.Add( FilterComparisionOperator.GreaterThanOrEqualTo, val1 );
    cf.FilterConditions.Add( FilterComparisionOperator.LessThan, val2 );

    e.ValueList.ValueListItems.Add( cf, ">= " + val1 + " and < " + val2 );
   }
  }












Posted by woojja
이전버튼 1 이전버튼

티스토리 툴바