Please help,,
At runtime based on some condition i have to change the Grid's cell's property from Activation.AllowEdit to Activation.NoEdit.
I am handling this in BeforeCellActivate().
Problem is if Cell is in Activation.NoEdit mode then i have to click twice to make it Active if the condition is satisfied.
I have done Grid.Refresh() also but no chance.
Any help would be highly appreciated.
Bhoomi.
Thanks Mike,
I think it is not infragistics control then.
For my previous question regarding AllowEdit to NoEdit in BeforeCellActivate Event i have handled it in AfterCellUpdate of another Cell who is the deciding factor for this Cell's Non-editable mode and it is working perfectly.
I had also tried Mouse_Click as suggested by Mr Kalavadia but the screen seemed to flicker so i changed it back.
Thanks & Regards,
My guess is that whoever did this, implement it by using multiple grid controls and arranged them on top of each other. The WinGrid itself does not have this functionality. AppStylist has nothing to do with it.
If you can please look at the following link :
http://www.maia-intelligence.com/1key-view.htm
A grid is shown in this page where a tab control is provided within a grid. This is infragistics grid only.
Is it possible to create such an UI using AppStylist or anything like that.
Thanks in advance.
No, there is no tabbing functionality in WinGrid. You should submit a feature request to Infragistics. Request a Feature or Component
Use following code to activate row in single click Write following code in MouseClick Event.
System.Drawing.Point point = new System.Drawing.Point(e.X, e.Y); // Get the UIElement Infragistics.Win.UIElement objUIElement = ((UltraGrid)sender).DisplayLayout.UIElement.ElementFromPoint(point); if (objUIElement == null) return; // See if we are over a cell UltraGridCell objCell = (UltraGridCell)objUIElement.GetContext(typeof(Infragistics.Win.UltraWinGrid.UltraGridCell)); if (objCell != null) { objCell.Row.Activate(); ulgResult.Selected.Columns.Clear(); ulgResult.Selected.Rows.Clear(); ulgResult.Selected.Cells.Clear(); }