本文整理汇总了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;
}
}
示例2: gbList_CustomDrawRowIndicator
private void gbList_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
{
int rowIndex = e.RowHandle;
if (rowIndex >= 0)
{
rowIndex++;
e.Info.DisplayText = rowIndex.ToString();
}
}
示例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;
}
}
示例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;
}
示例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();
}
示例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;
}
示例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);
}
}
}
示例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();
}
示例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;
}
示例10: gridViewOrderDetailForFacility_CustomDrawRowIndicator
private void gridViewOrderDetailForFacility_CustomDrawRowIndicator(object sender, RowIndicatorCustomDrawEventArgs e)
{
if (e.Info.IsRowIndicator)
{
e.Info.DisplayText = (e.RowHandle + 1).ToString();
}
}
示例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;
}
}
}
示例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;
}
}
示例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);
}
}
示例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();
}
}
示例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;
}
}