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!
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