Hi,
I'm trying to get the following behavior from an ultragrid and I don't know exactly where to start.
I have a purchase order items grid that should behave this way:
1. Some of the columns should be disabled(grayed out), they should be skipped when tabbing.2. Some of the rows should be completly disabled(kit item rows)3. When I press enter key the grid should select the next cell right below the current one(changing price or quantity for each product for example).
I'm planning to subclass the grid and override the default behavior. Is there any sample on this or can you please give me some hints?
Thanks,Cosmin Onea
Hi, thanks, it worked fine.
This KB article might also be useful:
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
Disable Tab Stop:
ultraGrid1.DisplayLayout.Bands[0].Columns[0].TabStop = false;
Disable column:
ultraGrid1.DisplayLayout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.Disabled;
Disable row:
ultraGrid1.Rows[0].Activation = Infragistics.Win.UltraWinGrid.Activation.Disabled;
Enter key:
{
}