그림 추가하기...




    ' 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

반응형
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 );
   }
  }
반응형
감사합니다. ^^



<style  type="text/css">
<!--
pre
{
 font-family: 맑은 고딕, Consolas, Verdana;
}

pre.code
{
 margin: 10px 0px 10px 10px;
 padding: 10px 0px 10px 10px;
 width: 800px;
 background-color: #fbedbb;
 overflow-y: scroll;
 overflow-x: scroll;
 font-family: Consolas, Verdana;
}
-->
</style>
            <script language="jscript" type="text/jscript">

    function window.onload()
  {
   
   try {
    MainContent_onload();
   } catch ( e )
   {
   }
     
   
  }
                function width_recalc()
                {
                    divDst.style.width = divStd.offsetWidth-20;
                   
                    var preElems = document.getElementsByTagName("pre");
                    var preElemsCount = preElems.length;
                    for ( var iPreIndex = 0; iPreIndex < preElemsCount; iPreIndex ++ )
                    {
                      var aPreElem = preElems[ iPreIndex ];
                      if (aPreElem.className == "code")
                      {
                        aPreElem.style.width = divStd.offsetWidth - 80;
                      }
                    }
                }
               
                function MainContent_onload()
                {
                    width_recalc();
                    window.onresize = width_recalc;
                }
            </script>
</HEAD>

<BODY>
<div id="divStd" style="border: solid 1px #7b9ebd; background-color: White; margin: 10px 10px 10px 10px">
              <div id="divDst" style="width: 650px; margin: 5px 5px 5px 5px; padding: 10px 10px 10px 10px;;overflow-y: scroll; overflow-x: scroll;
               ">
<pre class='code'>
가나다
</pre>
반응형
반응형

+ Recent posts