2024年4月4日发(作者:)

private void dgvSelectAll_CellPainting(object sender, DataGridViewCellPaintingEventArgs e)

{

if (ex == -1 && Index == 0)

ResetHeaderCheckBoxLocation(Index, ex);

}

private void ResetHeaderCheckBoxLocation(int ColumnIndex, int RowIndex)

{

Rectangle oRectangle =

lDisplayRectangle(ColumnIndex, RowIndex, true);

Point oPoint = new Point();

oPoint.X =

on.X + ( - ) / 2 + 1;

oPoint.Y =

on.Y + ( - ) / 2 + 1;

on = oPoint;

}

private void HeaderCheckBoxClick(CheckBox HCheckBox)

{

foreach (DataGridViewRow Row in )

{

((DataGridViewCheckBoxCell)[ "chkBxSelect"]).Value = d;

}

hEdit();

}