Esempio n. 1
0
 private void StructTab_OnRowChanged(object sender, DataRowChangeEventArgs e)
 {
     try
     {
         if (LastTabName != (string)e.Row["Tables"])
         {
             LastTabName = (string)e.Row["Tables"];
             string Fields = UserReq.GetTableFields(LastTabName);
             e.Row["Fields"] = Fields;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 2
0
 private void StructTab_OnRowChanged(object sender, DataRowChangeEventArgs e)
 {
     try
     {
         if (LastTabName != (string)e.Row["Tables"])
         {
             LastTabName = (string)e.Row["Tables"];
             string Fields = UserReq.GetTableFields(LastTabName);
             e.Row["Fields"] = Fields;
         }
         datGridDBTables.Columns[1].Width = 1100;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }