Hi All,
We are facing a problem, while we are ungrouping the grid columns we are losing the row selection .please check with steps and screen shots attached below .and the same was working earlier with Them ”WindowsXP - Silver“ whereas with them “Aero” ..we are facing this issue ..Please let us know solution for this
Before, the grouping on old Infragistics ultra grid control. Selected, number of rows.
After I grouped the records on ultra grid.
Then ungrouped the grid records
In the both the cases Ultra grid was retaining the selection.
Ultrgrid------- Infragistics 9.2 version. With Them “Aero”
Selected number of records on the new version of Ultra grid.
Grouped the records on this grid.
Ungrouped the records again on this grid
Selection on this grid is not available right now. However, it is showing one row active on the grid. As per our design settings, grid is not retaining any selection after ungroup the column.
Are there any different property available on this new 9.2 ultra grid to fix this problem?..
Hi,
Are you saying that this behavior changed simply by changing the theme? Or were you using an older version of the grid when it worked.
I can't see any way that themes could affect the behavior like this. But if this was working in an older version of the grid and now it's not, then that's clearly a bug. But we need to know what version you were using when it worked.
Hi Mike ,we are using NetAdvantage 2009.2 version and both the them are from same version only .
Here is that code which fails populate “UltraGridRow drv” with grouping functionality in them name “Aero” .whereas same was working with them “WindowsXP - Silver”..Because it retains the row selection before/after grouping..Where as in “Aero” them it doesn’t retains the selection..While grouping the column. So the enumerator populate “UltraGridRow drv” with null value..Which causing
Problem while finding the cell values from drv object..which is null now … J..which is not the case in them “WindowsXP - Silver”. ..it works ..for us ..:)
if (UltraGrid1.Selected.Rows.Count > 0)
{
foreach (UltraGridRow drv in UltraGrid1.Selected.Rows)
if (drv. Cells["Running Type"].Value.ToString() == "Server")
strDrIds += drv.Cells["DeviceRunningId"].Value.ToString() + ",";
}
Let us know if there are any thing we are missing in property settings to retain the row selection before/after grouping the column ..it shouldn’t remove the selection after dropping the column into the grid . Thanks
Prasant Rout
When you say "Theme" here, are you refferring to changing the Operating system themes? Or loading an isl file into your application?
Either way, I can't see how either of these couple possibly affect the selection in the grid. In order to look into this, we will need you to provide a small sample project we can use to duplicate the issue, and more specific information about what Operating system you are running (assuming you are talking about O/S themes), or exactly which isl files you are using (if that's what you meant be themes).
Hi Mike,Thanks ..now i am able ...understand where is my mistake .. :) ..actually that property was inside the override settings ..n i was not able to find it ..earlier ..please ignore my last reply ..thanks for you help n support .
Solution : DisplayLayout.Override.SelectTypeGroupByRow = None
Prasant rout
Hi Mike..Yeap...I am talking about presets .only. &.apologies for that confusion. J ....But mike...Please tell me..what need to done to retain the row selection in first grid...With that existing preset.
Thnaks in advance
Hi Prasant,
I ran your sample and I get the same results you do. But I'm still not clear on what you mean by "theme". These two grids clearly have different property settings. It looks like maybe you are talking about Presets when you say "theme".
I noticed that when I GroupBy on the first grid, the first GroupByRow in the grid gets selected and so therefore the data row that I selected before the grouping was de-selected. When you click the button, you are trying to access the cells collection of the selected rows and since a GroupByRow has no cells, you get an error. This is all perfectly normal and correct.
In the second grid, the GroupByRow is not selected and so it seems that the initial selected data row stays selected. The GroupByRow is probably not selected because the SelectTypeGroupByRow on the second grid has been set to None.
Hi Mike,Please runthough my attached window application.Zip ..where i have showed both the grid with a button below..please select a row from grid 1 and then group it ...and then ..click on the button below ...will give you the object refrence error ..and same doing with gird2 will not throw error ..because it's retaining the row selection ..
Hoping below will help you to understand the issue :)
Link :
Screen Shot
Thanks