该方法或操作未实现。 [英] The method or operation is not implemented.

查看:146
本文介绍了该方法或操作未实现。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BhavansFMS.Cancel_ReportTableAdapters;

namespace BhavansFMS
{
    public partial class Cancel_Admission_Report : Form
    {
        public Cancel_Admission_Report()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Cancel_Admission_Report car = new Cancel_Admission_Report();
            Cancel_Report ds = new Cancel_Report();
            CANCEL_STUDENT_RECORDSTableAdapter ctr = new CANCEL_STUDENT_RECORDSTableAdapter();
            ctr.Fill(ds.CANCEL_STUDENT_RECORDS);
            car.SetDataSource(ds);
            crystalReportViewer1.ReportSource = car;


        }

        private void SetDataSource(Cancel_Report ds)
        {
            throw new NotImplementedException();(The method or operation is not implemented.)
        }

       

        
    }
}

推荐答案

在button1_click事件中,当你调用setdatasource方法时,该方法会抛出一个notimplementedexception,这就是为什么你得到那个异常
In button1_click event when you call setdatasource method the method throws a notimplementedexception thats why ur getting that exception


尝试在方法中的SetDataSource()中添加代码而不是抛出新的
trying adding code in SetDataSource() in the method instead of throw new


这篇关于该方法或操作未实现。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆