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