您的例子是aspx的,我做的bs架构的,用的windows的控件..我初学,还不会您的那种..我现在就用的windows的控件做的,然后跟这个有关的我的代码如下: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 DAL; namespace frmEmpInfo { public partial class ManSuperet : Form { public ManSuperet() { InitializeComponent(); } private void ManSuperet_Load(object sender, EventArgs e) { addSuperet ShowInfo=new addSuperet(); this.datagridsuper.DataSource = ShowInfo.FindGrid();
http://www.cnblogs.com/insus/p/3232057.html
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DAL;
namespace frmEmpInfo
{
public partial class ManSuperet : Form
{
public ManSuperet()
{
InitializeComponent();
} private void ManSuperet_Load(object sender, EventArgs e)
{
addSuperet ShowInfo=new addSuperet();
this.datagridsuper.DataSource = ShowInfo.FindGrid();
} private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
} private void dataGridView1_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
{ }
}
}
该怎么实现那个功能呢?真是很感谢...