Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
add new checkbox column whose state can be changed
posted

We user infragistic V. 8.1 windows controls. 

I need to add an extra column to the grid. this column shud contain the checkboxes and i need to get the event(row updated/changed event) when this checkbox checked state is changed. I do it in InitializeLayout event of the grid as below

private void dataGrid1_InitializeLayout( object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e )

{

dataGrid1.DisplayLayout.Bands[ 0 ].Columns.Add(
"Paid" );

dataGrid1.DisplayLayout.Bands[ 0 ].Columns[ "Paid" ].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.CheckBox

dataGrid1.DisplayLayout.Bands[ 0 ].Columns[ "Paid" ].DefaultCellValue = false;

}

 But the when the application runs,  i see all the column with checkboxes with intermediatory checkedstate.(something like a TriStateCheckBox ) and it doesnt allow to check or uncheck the check box and hence i dont get the row or cell value changed event. I also tried setting the CellClickAction Event to EDIT and EDITANDSELECTITEM but looks no user with this.

Can you please tell where am i going wrong ?

Cheers,

arif

Parents
No Data
Reply
  • 405
    Verified Answer
    posted

    Sorry guys.. was working a lot and overseen the property which was set in the control

    dataGrid1.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.False;... now its been changed to True and it works perfectly.

    Cheers Infragistics...

    Arif

Children
No Data