当前位置: 首页>>代码示例>>C#>>正文


C# RowIndicatorCustomDrawEventArgs类代码示例

本文整理汇总了C#中RowIndicatorCustomDrawEventArgs的典型用法代码示例。如果您正苦于以下问题:C# RowIndicatorCustomDrawEventArgs类的具体用法?C# RowIndicatorCustomDrawEventArgs怎么用?C# RowIndicatorCustomDrawEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RowIndicatorCustomDrawEventArgs类属于命名空间,在下文中一共展示了RowIndicatorCustomDrawEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: gdvGeneric_CustomDrawRowIndicator

 private void gdvGeneric_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         e.Info.DisplayText = Convert.ToString(e.RowHandle + 1);
         e.Info.ImageIndex = -1;
     }
 }
开发者ID:isvelarder,项目名称:sispeper,代码行数:8,代码来源:xfTypeArticle.cs

示例2: gbList_CustomDrawRowIndicator

 private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     int rowIndex = e.RowHandle;
     if (rowIndex >= 0)
     {
         rowIndex++;
         e.Info.DisplayText = rowIndex.ToString();
     }
 }
开发者ID:gojila,项目名称:Quan_Ly_Cam_Do,代码行数:9,代码来源:frDanhSachLoaiVang.cs

示例3: gridItemDetail_CustomDrawRowIndicator

 private void gridItemDetail_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     GridView view = (GridView)sender;
     //Check whether the indicator cell belongs to a data row
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
         if (!indicatorIcon)
             e.Info.ImageIndex = -1;
     }
 }
开发者ID:minhkhong1369,项目名称:PthOrder,代码行数:11,代码来源:frmStore.cs

示例4: ImageCustomDrawRowIndicator

 /// <summary>
 ///     Кастомное изображение на столбце индикатора
 /// </summary>
 public void ImageCustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     var view = (CommonGridView)sender;
     if (e.RowHandle < 0 || view.IndicatorImage == null)
     {
         return;
     }
     var erg = new EventRowHandlerArgs(e.RowHandle);
     view.DoCheckBeforeDrawIndicator.Raise(this, erg);
     if (erg.Cancel)
     {
         return;
     }
     e.Info.ImageIndex = -1;
     e.Painter.DrawObject(e.Info);
     var r = e.Bounds;
     r.Inflate(-1, -1);
     var x = r.X + (r.Width - view.IndicatorImage.Size.Width) / 2;
     var y = r.Y + (r.Height - view.IndicatorImage.Size.Height) / 2;
     e.Graphics.DrawImageUnscaled(view.IndicatorImage, x, y);
     e.Handled = true;
 }
开发者ID:Demotron,项目名称:AdminTools,代码行数:25,代码来源:CommonGridView.cs

示例5: m_grv_ds_don_hang_dang_xu_ly_CustomDrawRowIndicator

 private void m_grv_ds_don_hang_dang_xu_ly_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
 }
开发者ID:anhphamkstn,项目名称:DVMC,代码行数:5,代码来源:f122_ds_don_hang_dang_xu_ly.cs

示例6: gridViewDetail_CustomDrawRowIndicator

 void gridViewDetail_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (gridViewDetail.IsGroupRow(e.RowHandle) || gridViewDetail.IsNewItemRow(e.RowHandle)) return;
     DataRow row = gridViewDetail.GetDataRow(e.RowHandle);
     if (row == null || e.Info.IsRowIndicator == false) return;
     if (HelpNumber.ParseInt64(row[QL_LICH_PHAT_SONG_CT.BM_ID]) > 0)
     {
         e.Info.DisplayText = (e.RowHandle + 1) + " *";
     }
     e.Appearance.TextOptions.HAlignment = HorzAlignment.Near;
     e.Appearance.Options.UseTextOptions = true;
 }
开发者ID:khanhdtn,项目名称:did-vlib-2011,代码行数:12,代码来源:frmLichPhatSonNew.cs

示例7: gridView1_CustomDrawRowIndicator

 private void gridView1_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (this.DesignMode)
         return;
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         var gv = sender as GridView;
         var para = StyleList[gv];
         if (para.EnableShowCate)
         {
             bool hasCate = (bool)gv.GetRowCellValue(e.RowHandle, para.CateField);
             if (hasCate)
                 e.Info.DisplayText = string.Format(para.FormatString.Replace("{line}", "{0}").Replace("{cate}", "{1}"), e.RowHandle + 1, StyleList[gv].CateString);
             else
                 e.Info.DisplayText = string.Format(para.FormatString.Replace("{line}", "{0}").Replace("{cate}", "{1}"), e.RowHandle + 1, string.Empty);
         }
     }
 }
开发者ID:dishiyicijinqiu,项目名称:OneCardAccess,代码行数:18,代码来源:GridView_ShowCate.cs

示例8: m_grv_lich_su_thuc_hien_CustomDrawRowIndicator

 private void m_grv_lich_su_thuc_hien_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
 }
开发者ID:anhphamkstn,项目名称:DVMC,代码行数:5,代码来源:f100_don_dat_hang_new.cs

示例9: gridView1_CustomDrawRowIndicator

 private void gridView1_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (!e.Info.IsRowIndicator || e.RowHandle < 0) return;
     e.Info.Appearance.TextOptions.HAlignment = HorzAlignment.Far;
     //if(!iserroricon)
     e.Info.Appearance.TextOptions.VAlignment = VertAlignment.Center;
     e.Info.DisplayText = (1 + int.Parse(e.RowHandle.ToString())).ToString();
     e.Info.ImageIndex = -1;
 }
开发者ID:rehman922,项目名称:VIRETAIL,代码行数:9,代码来源:CommissionSetup.cs

示例10: gridViewOrderDetailForFacility_CustomDrawRowIndicator

 private void gridViewOrderDetailForFacility_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator)
     {
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
     }
 }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:7,代码来源:ApprovalForm.cs

示例11: View_CustomDrawRowIndicator

 void View_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.RowHandle == GridControl.InvalidRowHandle) {
         // You may assign your own image list e.Info.Images to show the custom image.
         e.Info.ImageIndex = GridPainter.IndicatorNewItemRow;
         e.Info.Appearance.ForeColor = Color.Blue;
         if (State != ColumnCustomizationState.None) {
             e.Info.State = DevExpress.Utils.Drawing.ObjectState.Pressed;
         }
     }
 }
开发者ID:incjonya,项目名称:demos,代码行数:11,代码来源:Class1.cs

示例12: gridView1_CustomDrawRowIndicator

 private void gridView1_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         var gv = sender as GridView;
         if (StyleList.ContainsKey(gv))
         {
             e.Info.DisplayText = string.Format(StyleList[gv].LineNoFormatString, e.RowHandle + 1) + e.Info.DisplayText;
         }
         else
             e.Info.DisplayText = (e.RowHandle + 1).ToString() + e.Info.DisplayText;
     }
 }
开发者ID:dishiyicijinqiu,项目名称:FengSharp,代码行数:13,代码来源:GridView_ShowLine.cs

示例13: gridViewInboundDocs_CustomDrawRowIndicator

        private void gridViewInboundDocs_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
        {
            bool indicatorIcon = true;

            GridView view = (GridView)sender;
            try
            {
                //Check whether the indicator cell belongs to a data row
                if (e.Info.IsRowIndicator && e.RowHandle > 0)
                {
                    string bookMark = view.GetRowCellValue(e.RowHandle, "BookmarkFlag").ToString();
                    string commentMark = view.GetRowCellValue(e.RowHandle, "CommentFlag").ToString();
                    string displayText = "";

                    if ((bookMark == null) || (bookMark == ""))
                    {
                        displayText = "";
                    }
                    else displayText = "B";

                    if ((commentMark == null) || (commentMark.Trim() == ""))
                    {
                    }
                    else
                    {
                        if (displayText != "")
                            displayText = "B,C";
                        else displayText = "C";
                    }

                    e.Info.DisplayText = displayText;
                    if (!indicatorIcon)
                        e.Info.ImageIndex = -1;
                }
            }
            catch (Exception err)
            {
                //Israel 12/14/2015 - appears out of sequence because CNF-506 was used elsewhere.
                XtraMessageBox.Show("An error occurred while setting grid with the bookmark and comment flags." + Environment.NewLine +
                       "Error CNF-507 in " + FORM_NAME + ".gridViewInboundDocs_CustomDrawRowIndicator(): " + err.Message,
                     FORM_ERROR_CAPTION, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
开发者ID:Amphora2015,项目名称:DemoTest,代码行数:43,代码来源:InboundQTabPnll.cs

示例14: gdvLines_CustomDrawRowIndicator

 private void gdvLines_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         var gr = e.Info.Graphics;
         gr.PageUnit = GraphicsUnit.Pixel;
         var gridView = ((GridView)sender);
         var size = gr.MeasureString(gridView.RowCount.ToString(), e.Info.Appearance.Font);
         gridView.IndicatorWidth = Convert.ToInt32(size.Width) + GridPainter.Indicator.ImageSize.Width + 10;
         e.Appearance.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far;
         e.Info.DisplayText = (e.RowHandle + 1).ToString();
     }
 }
开发者ID:isvelarder,项目名称:sispeper,代码行数:13,代码来源:xfInvoice.cs

示例15: eventsHistoryGridView_CustomDrawRowIndicator

 /// <summary>
 /// нумерация в гриде истории (автоинкремент)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void eventsHistoryGridView_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
 {
     if (e.Info.IsRowIndicator && e.RowHandle >= 0)
     {
         e.Info.DisplayText = e.RowHandle.ToString();
         e.Info.ImageIndex = -1;
     }
 }
开发者ID:AGluhov,项目名称:PmClient,代码行数:13,代码来源:MainForm.cs


注:本文中的RowIndicatorCustomDrawEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。