Ejemplo n.º 1
0
        void GridCellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            DataGridView grid = sender as DataGridView;

            switch (e.ColumnIndex)
            {
            case 3:

                Setting setting = settings.Get(grid.Rows[e.RowIndex].Cells[0].Value.ToString());
                if (setting != null)
                {
                    node_client.Forms.SettingUpdate f = new node_client.Forms.SettingUpdate(serial, setting);
                    f.Show();
                }

                break;

            default:
                break;
            }

            grid.ClearSelection();
            grid.CurrentCell = null;
        }