Exemplo n.º 1
0
 private void gridView1_Click(object sender, EventArgs e)
 {
     if (DevControlHelper.ClickGridCheckBox(this.gridView1, "check", m_checkStatus))
     {
         m_checkStatus = !m_checkStatus;
     }
 }
Exemplo n.º 2
0
 private void gridView1_CustomDrawColumnHeader(object sender, DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e)
 {
     if (e.Column != null && e.Column.FieldName == "check")
     {
         e.Info.InnerElements.Clear();
         e.Painter.DrawObject(e.Info);
         DevControlHelper.DrawCheckBox(e, m_checkStatus);
         e.Handled = true;
     }
 }