private void tabblog_record_Click(object sender, EventArgs e) { dataAdminBlogData.AutoGenerateColumns = false; //Blog Record Gird Display server.Service1 ser = new server.Service1(); list = ser.getBlog().ToList <server.Blog>(); BindingSource a = new BindingSource(); a.DataSource = list; dataAdminBlogData.DataSource = a; }
private void ResetAdmin_Load(object sender, EventArgs e) { dataAdminUserData.AutoGenerateColumns = false; dataAdminBlogData.AutoGenerateColumns = false; //Blog Record Gird Display server.Service1 ser = new server.Service1(); list = ser.getBlog().ToList <server.Blog>(); BindingSource a = new BindingSource(); a.DataSource = list; dataAdminBlogData.DataSource = a; //User Data Display server.Service1 server = new server.Service1(); List <server.User> list1 = server.GetUser().ToList <server.User>(); BindingSource b = new BindingSource(); b.DataSource = list1; dataAdminUserData.DataSource = b; }