Hello,
I am using an Infragistics grid (8.1.20081.1000, C#, VS2008, .Net3.5) and I save the layout in a database when the user exits the form where the grid is located. When the user tries to start the form again, i load the layout from the database. This works fine except when I have a dropdownlist column with a filter on it.
The filter works fine when when I am working on the grid. i.e. the filter is applied correctly on the grid data. But when I save the layout (with the filter) and load it again, the filters are not applied on the grid data even though the filter condition is correctly set when you try to view it. Once I click OK on the filter window, it works again.
This happens only when I have with a dropdownlist column
Hope this is Clear. Any ideas ?
Thanks
Satish
Hi Satish,
I'm a little unclear on what you are describing. Are you referring to filtering applied to the grid? Or filtering applied to the dropdown list within the grid?
Filtering in the grid should be saved and loaded in the layout.
Filtered in the DropDown would have to be saved separately along with the layout of the UltraDropDown control.
You might also want to make sure that you have the latest service release. I think there may be a bug in the release version regarding the filtering not being initially applied when you load a layout that is already fixed.
You use the memory stream object to save the layout to a database field. Here is a sample code.
MemoryStream stream = new MemoryStream();grid.DisplayLayout.Save(stream);
then use stream.ToArray() to convert it into a byteArray
Hi, How do you save the layout to a database field?