Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
detecting new column after calling UltraGridLayout.LoadFromXml
posted

I'm using an UltraGrid in a WinForms application and calling UltraGridLayout.LoadFromXml to load the grid's ColumnFilters.  I call LoadFromXml after setting the grid's DataSource property.

I also want to handle a new column in my data source.  Since the new column isn't in the XML that I load, any formatting I do to the new column is lost once I load the XML.

Resetting the formatting after loading the XML works, but I'd rather not hard-code setting the formatting for this new column since I might have other new columns later and the user may change the formatting of the new column anyway (which would get saved to XML and loaded the next time the application runs). 

Is there a way to detect that the new column is not part of the loaded XML ?  Is it possible to compare the columns from the XML with the columns in the data source ?

Thanks.

 

Brad 

Parents Reply Children