none
sdfadfadadfadfadfadfa RRS feed

  • 질문

  • public Form1()
    {
    IntializeComponent();
    tbl1=new Datatable("grade");
    DataColumn column;

    column= new DataColumn();
    column.dataType=Type.GetType("System.String");
    column.ColumnName="Name";
    column.AllowDBNUll=false;
    tbl.Column.Add(column);
    column=new DataColumn();
    column.DataType=Type.GetType("System.Int32");
    column.ColumnName="Kor";
    column.AllowDBNull=false;
    tbl.Columns.Add(column);


    DataRow row;
    row=tbl.NewRow();
    row["name"]="이주형";
    tbl.Rows.Add(row);
    datagrid1.datasource=tbl;
    }

    버튼클릭{

    DataView view1=new DataView(this.tbl);
    DataView view2=new DataView(this.tbl);

    view1.Rowfilter="kor>90";
    view2.Rowfilter="eng>90";

    dataGrid2.DataSource=view1;
    dataGrid3.DataSource=view1;
    }
    2009년 12월 9일 수요일 오전 3:04