Beispiel #1
0
        private static void renameColumn(object sender, System.EventArgs e)
        {
            MenuItem senderMI = sender as MenuItem;

            dynamic[]    dat      = senderMI.Tag as dynamic[];
            DataGridView _DGV     = dat[0];
            string       _colName = dat[1];

            string[] input = Prompt.ShowDialog("Enter New Column Name:", "Rename \"" + _colName + "\" Column", true, false, null);

            if (input[0] == "T")
            {
                DatabaseFunct.ChangeColumnName(_colName, input[1], _DGV);
            }
        }