Ejemplo n.º 1
0
        private void SaveLayout(Janus.Windows.GridEX.GridEX dgv)
        {
            string path = Form_QD.__documentDirectory + "\\Layout\\" + dgv.SettingsKey + ".gxl";

            using (FileStream fs = new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write))
            {
                dgv.SaveLayoutFile(fs);
            }
        }
Ejemplo n.º 2
0
 private void bGuardar_Click(object sender, EventArgs e)
 {
     if (_gridSource != null)
     {
         string path = _uiController.Path;
         System.IO.StreamWriter str = new System.IO.StreamWriter(path);
         _gridSource.SaveLayoutFile(str.BaseStream);
         str.Close();
     }
 }
Ejemplo n.º 3
0
        private void SaveLayout(Janus.Windows.GridEX.GridEX dgv)
        {
            string path = Form_QD.__documentDirectory + "\\Layout\\" + dgv.SettingsKey + ".gxl";

            try
            {
                FileStream fs = new FileStream(path, FileMode.OpenOrCreate, FileAccess.Write);
                dgv.SaveLayoutFile(fs);
                fs.Close();
            }
            catch (Exception ex)
            {
            }
        }