void gridStockTx_Click(object sender, EventArgs e) { if (BLLDevControlHelper.ClickGridCheckBox(this.gridStockTx, "IsProcessed", m_checkStatus)) { m_checkStatus = !m_checkStatus; } }
void gridStockTX2_Click(object sender, EventArgs e) { if (BLLDevControlHelper.ClickGridCheckBox(this.gridStockTX2, "Check", m_checkStatus2)) { m_checkStatus = !m_checkStatus; } }
void gridStockTx_CustomDrawColumnHeader(object sender, DevExpress.XtraGrid.Views.Grid.ColumnHeaderCustomDrawEventArgs e) { if (e.Column != null && e.Column.FieldName == "IsProcessed") { e.Column.ColumnEdit = new RepositoryItemCheckEdit(); e.Info.InnerElements.Clear(); e.Painter.DrawObject(e.Info); BLLDevControlHelper.DrawCheckBox(e, m_checkStatus); e.Handled = true; } }