Home Forums WinForms controls Xceed Grid for WinForms WinCheckbox Reply To: WinCheckbox

User (Old forums)
Member
Post count: 23064

Hi,

is the column added programmatically or by the Designer?

Designer case:

Hover the column name with he mouse, right-click on the column icon (black vertical bar + gray vertical bar), select Properties…  once in the properties, select the Event view.  Double-click the “Click” event.  Put the code you need in the event handler. 

Programming case: 

try adding something like:

void BooleanColumn_Click(object sender, EventArgs e)
{
  DataCell dc = sender as DataCell;
  if(dc!=null)
    System.Diagnostics.Debug.WriteLine(“I should do something useful, now…”);
}
 

and in the code initializing the gridControl1:

gridControl1.Columns[“myBooleanColumn”].Click += new EventHandler(BooleanColumn_Click);

 

Imported from legacy forums. Posted by Ghislain (had 1120 views)