b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

datagridview重叠_datagridview绑定list_datagridview右键菜单(44)

电脑杂谈  发布时间:2017-05-30 08:07:57  来源:网络整理

}

}

// Override the Clone method so that the Enabled property is copied.

public override object Clone()

{

DataGridViewDisableButtonCell cell =

(DataGridViewDisableButtonCell)base.Clone();

cell.Enabled = this.Enabled;

return cell;

}

// By default, enable the button cell.

public DataGridViewDisableButtonCell()

{

this.enabledValue = true;

}

protected override void Paint(Graphics graphics,

Rectangle clipBounds, Rectangle cellBounds, int rowIndex,

DataGridViewElementStates elementState, object value,

object formattedValue, string errorText,

DataGridViewCellStyle cellStyle,

DataGridViewAdvancedBorderStyle advancedBorderStyle,

DataGridViewPaintParts paintParts)

{

// The button cell is disabled, so paint the border,

// background, and disabled button for the cell.

if (!this.enabledValue)

{

// Draw the cell background, if specified.

if ((paintParts & DataGridViewPaintParts.Background) ==

DataGridViewPaintParts.Background)

{

SolidBrush cellBackground =

new SolidBrush(cellStyle.BackColor);

graphics.FillRectangle(cellBackground, cellBounds);

cellBackground.Dispose();

}

// Draw the cell borders, if specified.

if ((paintParts & DataGridViewPaintParts.Border) ==

DataGridViewPaintParts.Border)

{

PaintBorder(graphics, clipBounds, cellBounds, cellStyle,

advancedBorderStyle);

}

// Calculate the area in which to draw the button.

Rectangle buttonArea = cellBounds;

Rectangle buttonAdjustment =

this.BorderWidths(advancedBorderStyle);

buttonArea.X = buttonAdjustment.X;

buttonArea.Y = buttonAdjustment.Y;


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-50070-44.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 孙迎
      孙迎

      热血丹心

    • 蔡依林
      蔡依林

      某国际学校的老师出了一道开放性问题

    • 谢菲菲
      谢菲菲

      你以为是小学的数学题

    热点图片
    拼命载入中...