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
760
Enable Cell Editing
posted

Hello everyone,

I have searched for this and I'm sure the answer is out there but I haven't been able to find it. I want to be able to edit the first cell in every column within a band.

I tried a few things like cell activation and also setting the datacolumn to ReadOnly = false;

Neither of these things work. Any help is much appreciated. Thank you!

  • 53790
    posted

    Hello RichSee,

     

    I`m not sure what is exactly your scenario, but maybe one possible approach to achieve such kind behavior is to handle event :

    private void ultraGrid1_BeforeCellActivate(object sender, Infragistics.Win.UltraWinGrid.CancelableCellEventArgs e)

    {

    if (e.Cell.Row.Index != 0) e.Cancel = true;

    }

    By this way only the first row (the first cells in every column) will be editable.

    If you are looking for the option to add new row on the top of your UltraGird, you could use the property:

    ultraGrid1.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.FixedAddRowOnTop;

    Please take a look at the attached sample for more details. Please let me know if you think that I misunderstood your scenario.

    Regards

    UltraGridFirstCellColumn.zip