コード例 #1
0
        private void ButtonClickedForProjects(object sender, EventArgs e)
        {
            dataGridViewProjects.Visible = true;

            if (dataGridViewClients.SelectedRows.Count > 0)
            {
                selectedIdFromProjects          = Convert.ToInt32(dataGridViewClients.SelectedRows[0].Cells[0].Value.ToString());
                dataProject                     = projectPresenter.GetAllProjects(selectedIdFromProjects);
                dataGridViewProjects.DataSource = dataProject;
                dataGridViewProjects.DataMember = dataProject.TableName;
            }
        }