Source/NFX.WinForms/Controls/GridKit/Grid.cs
// IConfigurationPersistent Members
/// <summary>
/// Persists column configuration to config node. [grid] subnode will be created under specified node pr reused if one already exists
/// </summary>
Persists column configuration to config node. [grid] subnode will be created under specified node pr reused if one already exists
Persists column configuration to config node . [ grid ] subnode will be created under specified node pr reused if one already exists
public void PersistConfiguration(ConfigSectionNode node)
      {
         if (node==null) return;
         ConfigSectionNode gnode = findSubNodeForThisGrid(node) as ConfigSectionNode; 
         if (gnode!=null)
           gnode.Delete();
         gnode = node.AddChildNode(CONFIG_GRID_SECTION);
         if (!string.IsNullOrEmpty(m_ID))
           gnode.AddAttributeNode(CONFIG_ID_ATTR, ID);
         foreach(var col in m_Columns)
           col.PersistConfiguration(gnode);
      }
public void PersistConfiguration ( ConfigSectionNode node ) { if ( node == null ) return ; ConfigSectionNode gnode = findSubNodeForThisGrid ( node ) as ConfigSectionNode ; if ( gnode != null ) gnode . Delete ( ) ; gnode = node . AddChildNode ( CONFIG_GRID_SECTION ) ; if ( ! string . IsNullOrEmpty ( m_ID ) ) gnode . AddAttributeNode ( CONFIG_ID_ATTR , ID ) ; foreach ( var col in m_Columns ) col . PersistConfiguration ( gnode ) ; }
Persists column configuration to config node.
Persists column configuration to config node .
//see if node for this grid already exists //delete with all column defs that are different now
node
ConfigSectionNode