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, How do you save the layout to a database field?
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