コード例 #1
0
        // Run Script
        private void Run_Script()
        {
            try
            {
                Script_Selector();

                //Script_richTextBox
                DEV_DataSet = new DataSet();             // 1# New Dataset - This will be the Source
                Load_Script = new Datagridview_Loader(); // Loader DGV Class


                Load_Script.DB_Populate(Script_richTextBox.SelectedText, DEV_DataSet, "DEV"); // Loader Method to Populate the Dataset
                Dev_dataGridView.DataSource = DEV_DataSet;                                    // Datagridview Source is the Dataset that was populated in the Loader Class
                Dev_dataGridView.DataMember = "DEV";                                          // Data Member is the Part of the DataSet we want to read from "You can have different Datamembers in the same Dataset ans just switch trought them"

                Script_richTextBox.DeselectAll();
            }
            catch (Exception)
            {
            }
        }