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); } }
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(); } }
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) { } }