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.
I think BeforeCellActivate is too late. The cell is already in the process of activating. You will probably need to use some other event.
Thanks.
I will try it out.
I have another question also.
I have seen a Grid in which it seems tab controls are used in grid.
In the first row of grid there were values, there was a child band.
On clicking on + sign the child band opened in the tab format. It seemed the tab control was put in the grid's child band. I didnt get how it was done.
If multiple child bands were on the same level then it showed multiple tabpages in the child band. Is there any such new functionality in Infragistics 2007?
If i can also put it then lots of my problems will be solved.
Thanks in advance..
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(); }