using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace WindowsApplication1 { /// /// Summary description for Form1. /// public class Form1 : System.Windows.Forms.Form { private System.Windows.Forms.TabControl tabControl1; private System.Windows.Forms.TabPage tabPage1; private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.GroupBox groupBox3; private System.Windows.Forms.RadioButton radioButton5; private System.Windows.Forms.RadioButton radioButton6; private System.Windows.Forms.RadioButton radioButton12; private System.Windows.Forms.TextBox textBox3; private System.Windows.Forms.Label label3; private System.Windows.Forms.GroupBox groupBox5; private System.Windows.Forms.RadioButton radioButton9; private System.Windows.Forms.RadioButton radioButton10; private System.Windows.Forms.TextBox textBox5; private System.Windows.Forms.Label label5; private System.Windows.Forms.GroupBox groupBox4; private System.Windows.Forms.RadioButton radioButton7; private System.Windows.Forms.RadioButton radioButton8; private System.Windows.Forms.TextBox textBox4; private System.Windows.Forms.Label label4; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.RadioButton radioButton11; private System.Windows.Forms.RadioButton radioButton3; private System.Windows.Forms.RadioButton radioButton4; private System.Windows.Forms.TextBox textBox2; private System.Windows.Forms.Label label2; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.RadioButton radioButton2; private System.Windows.Forms.RadioButton radioButton1; private System.Windows.Forms.Button button1; private System.Windows.Forms.TextBox textBox1; private System.Windows.Forms.Label label1; private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Button button4; private System.Windows.Forms.Button button3; private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label6; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.TextBox textBox6; private System.Windows.Forms.Button button2; private System.Windows.Forms.DataGrid dataGrid1; private DataView _dv; private int start ; private string query; private System.Windows.Forms.Label label8; /// /// Required designer variable. /// private System.ComponentModel.Container components = null; public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); panel1.Visible=false; panel2.Visible=false; } /// /// Clean up any resources being used. /// protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #region Windows Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.tabControl1 = new System.Windows.Forms.TabControl(); this.tabPage1 = new System.Windows.Forms.TabPage(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.radioButton5 = new System.Windows.Forms.RadioButton(); this.radioButton6 = new System.Windows.Forms.RadioButton(); this.radioButton12 = new System.Windows.Forms.RadioButton(); this.textBox3 = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.groupBox5 = new System.Windows.Forms.GroupBox(); this.radioButton9 = new System.Windows.Forms.RadioButton(); this.radioButton10 = new System.Windows.Forms.RadioButton(); this.textBox5 = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.radioButton7 = new System.Windows.Forms.RadioButton(); this.radioButton8 = new System.Windows.Forms.RadioButton(); this.textBox4 = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.radioButton11 = new System.Windows.Forms.RadioButton(); this.radioButton3 = new System.Windows.Forms.RadioButton(); this.radioButton4 = new System.Windows.Forms.RadioButton(); this.textBox2 = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.radioButton2 = new System.Windows.Forms.RadioButton(); this.radioButton1 = new System.Windows.Forms.RadioButton(); this.button1 = new System.Windows.Forms.Button(); this.textBox1 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.panel2 = new System.Windows.Forms.Panel(); this.dataGrid1 = new System.Windows.Forms.DataGrid(); this.button4 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.label7 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.textBox6 = new System.Windows.Forms.TextBox(); this.button2 = new System.Windows.Forms.Button(); this.label8 = new System.Windows.Forms.Label(); this.tabControl1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.groupBox3.SuspendLayout(); this.groupBox5.SuspendLayout(); this.groupBox4.SuspendLayout(); this.groupBox2.SuspendLayout(); this.groupBox1.SuspendLayout(); this.tabPage2.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // tabControl1 // this.tabControl1.Controls.Add(this.tabPage1); this.tabControl1.Controls.Add(this.tabPage2); this.tabControl1.Location = new System.Drawing.Point(0, 0); this.tabControl1.Name = "tabControl1"; this.tabControl1.SelectedIndex = 0; this.tabControl1.Size = new System.Drawing.Size(472, 480); this.tabControl1.TabIndex = 39; // // tabPage1 // this.tabPage1.Controls.Add(this.label8); this.tabPage1.Controls.Add(this.groupBox3); this.tabPage1.Controls.Add(this.textBox3); this.tabPage1.Controls.Add(this.label3); this.tabPage1.Controls.Add(this.groupBox5); this.tabPage1.Controls.Add(this.textBox5); this.tabPage1.Controls.Add(this.label5); this.tabPage1.Controls.Add(this.groupBox4); this.tabPage1.Controls.Add(this.textBox4); this.tabPage1.Controls.Add(this.label4); this.tabPage1.Controls.Add(this.groupBox2); this.tabPage1.Controls.Add(this.textBox2); this.tabPage1.Controls.Add(this.label2); this.tabPage1.Controls.Add(this.groupBox1); this.tabPage1.Controls.Add(this.button1); this.tabPage1.Controls.Add(this.textBox1); this.tabPage1.Controls.Add(this.label1); this.tabPage1.Location = new System.Drawing.Point(4, 22); this.tabPage1.Name = "tabPage1"; this.tabPage1.Size = new System.Drawing.Size(464, 454); this.tabPage1.TabIndex = 0; this.tabPage1.Text = "Search"; // // groupBox3 // this.groupBox3.Controls.Add(this.radioButton5); this.groupBox3.Controls.Add(this.radioButton6); this.groupBox3.Controls.Add(this.radioButton12); this.groupBox3.Location = new System.Drawing.Point(296, 184); this.groupBox3.Name = "groupBox3"; this.groupBox3.Size = new System.Drawing.Size(88, 72); this.groupBox3.TabIndex = 52; this.groupBox3.TabStop = false; // // radioButton5 // this.radioButton5.Location = new System.Drawing.Point(8, 50); this.radioButton5.Name = "radioButton5"; this.radioButton5.Size = new System.Drawing.Size(72, 16); this.radioButton5.TabIndex = 6; this.radioButton5.Text = "phonetic"; // // radioButton6 // this.radioButton6.Location = new System.Drawing.Point(8, 32); this.radioButton6.Name = "radioButton6"; this.radioButton6.Size = new System.Drawing.Size(64, 16); this.radioButton6.TabIndex = 5; this.radioButton6.Text = "morpho"; // // radioButton12 // this.radioButton12.Checked = true; this.radioButton12.Location = new System.Drawing.Point(8, 8); this.radioButton12.Name = "radioButton12"; this.radioButton12.Size = new System.Drawing.Size(64, 24); this.radioButton12.TabIndex = 4; this.radioButton12.TabStop = true; this.radioButton12.Text = "exact"; // // textBox3 // this.textBox3.Location = new System.Drawing.Point(104, 192); this.textBox3.Name = "textBox3"; this.textBox3.Size = new System.Drawing.Size(176, 20); this.textBox3.TabIndex = 51; this.textBox3.Text = ""; // // label3 // this.label3.Location = new System.Drawing.Point(24, 192); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(72, 23); this.label3.TabIndex = 50; this.label3.Text = "Headings"; // // groupBox5 // this.groupBox5.Controls.Add(this.radioButton9); this.groupBox5.Controls.Add(this.radioButton10); this.groupBox5.Location = new System.Drawing.Point(296, 328); this.groupBox5.Name = "groupBox5"; this.groupBox5.Size = new System.Drawing.Size(88, 56); this.groupBox5.TabIndex = 49; this.groupBox5.TabStop = false; // // radioButton9 // this.radioButton9.Location = new System.Drawing.Point(8, 32); this.radioButton9.Name = "radioButton9"; this.radioButton9.Size = new System.Drawing.Size(64, 16); this.radioButton9.TabIndex = 5; this.radioButton9.Text = "morpho"; // // radioButton10 // this.radioButton10.Checked = true; this.radioButton10.Location = new System.Drawing.Point(8, 8); this.radioButton10.Name = "radioButton10"; this.radioButton10.Size = new System.Drawing.Size(64, 24); this.radioButton10.TabIndex = 4; this.radioButton10.TabStop = true; this.radioButton10.Text = "exact"; // // textBox5 // this.textBox5.Location = new System.Drawing.Point(104, 336); this.textBox5.Name = "textBox5"; this.textBox5.Size = new System.Drawing.Size(176, 20); this.textBox5.TabIndex = 48; this.textBox5.Text = ""; // // label5 // this.label5.Location = new System.Drawing.Point(24, 336); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(72, 32); this.label5.TabIndex = 47; this.label5.Text = "Meta keywords"; // // groupBox4 // this.groupBox4.Controls.Add(this.radioButton7); this.groupBox4.Controls.Add(this.radioButton8); this.groupBox4.Location = new System.Drawing.Point(296, 264); this.groupBox4.Name = "groupBox4"; this.groupBox4.Size = new System.Drawing.Size(88, 56); this.groupBox4.TabIndex = 46; this.groupBox4.TabStop = false; // // radioButton7 // this.radioButton7.Location = new System.Drawing.Point(8, 32); this.radioButton7.Name = "radioButton7"; this.radioButton7.Size = new System.Drawing.Size(64, 16); this.radioButton7.TabIndex = 5; this.radioButton7.Text = "morpho"; // // radioButton8 // this.radioButton8.Checked = true; this.radioButton8.Location = new System.Drawing.Point(8, 8); this.radioButton8.Name = "radioButton8"; this.radioButton8.Size = new System.Drawing.Size(64, 24); this.radioButton8.TabIndex = 4; this.radioButton8.TabStop = true; this.radioButton8.Text = "exact"; // // textBox4 // this.textBox4.Location = new System.Drawing.Point(104, 272); this.textBox4.Name = "textBox4"; this.textBox4.Size = new System.Drawing.Size(176, 20); this.textBox4.TabIndex = 45; this.textBox4.Text = ""; // // label4 // this.label4.Location = new System.Drawing.Point(24, 272); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(72, 32); this.label4.TabIndex = 44; this.label4.Text = "Meta descriptions"; // // groupBox2 // this.groupBox2.Controls.Add(this.radioButton11); this.groupBox2.Controls.Add(this.radioButton3); this.groupBox2.Controls.Add(this.radioButton4); this.groupBox2.Location = new System.Drawing.Point(296, 104); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(88, 72); this.groupBox2.TabIndex = 43; this.groupBox2.TabStop = false; // // radioButton11 // this.radioButton11.Location = new System.Drawing.Point(8, 50); this.radioButton11.Name = "radioButton11"; this.radioButton11.Size = new System.Drawing.Size(72, 16); this.radioButton11.TabIndex = 6; this.radioButton11.Text = "phonetic"; // // radioButton3 // this.radioButton3.Location = new System.Drawing.Point(8, 32); this.radioButton3.Name = "radioButton3"; this.radioButton3.Size = new System.Drawing.Size(64, 16); this.radioButton3.TabIndex = 5; this.radioButton3.Text = "morpho"; // // radioButton4 // this.radioButton4.Checked = true; this.radioButton4.Location = new System.Drawing.Point(8, 8); this.radioButton4.Name = "radioButton4"; this.radioButton4.Size = new System.Drawing.Size(64, 24); this.radioButton4.TabIndex = 4; this.radioButton4.TabStop = true; this.radioButton4.Text = "exact"; // // textBox2 // this.textBox2.Location = new System.Drawing.Point(104, 112); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(176, 20); this.textBox2.TabIndex = 42; this.textBox2.Text = ""; // // label2 // this.label2.Location = new System.Drawing.Point(24, 112); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(72, 23); this.label2.TabIndex = 41; this.label2.Text = "Title"; // // groupBox1 // this.groupBox1.Controls.Add(this.radioButton2); this.groupBox1.Controls.Add(this.radioButton1); this.groupBox1.Location = new System.Drawing.Point(296, 40); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(88, 56); this.groupBox1.TabIndex = 40; this.groupBox1.TabStop = false; // // radioButton2 // this.radioButton2.Location = new System.Drawing.Point(8, 32); this.radioButton2.Name = "radioButton2"; this.radioButton2.Size = new System.Drawing.Size(64, 16); this.radioButton2.TabIndex = 5; this.radioButton2.Text = "morpho"; // // radioButton1 // this.radioButton1.Checked = true; this.radioButton1.Location = new System.Drawing.Point(8, 8); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new System.Drawing.Size(64, 24); this.radioButton1.TabIndex = 4; this.radioButton1.TabStop = true; this.radioButton1.Text = "exact"; // // button1 // this.button1.Location = new System.Drawing.Point(160, 400); this.button1.Name = "button1"; this.button1.TabIndex = 39; this.button1.Text = "Search"; this.button1.Click += new System.EventHandler(this.button1_Click); // // textBox1 // this.textBox1.Location = new System.Drawing.Point(104, 48); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(176, 20); this.textBox1.TabIndex = 38; this.textBox1.Text = ""; // // label1 // this.label1.Location = new System.Drawing.Point(24, 48); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(72, 23); this.label1.TabIndex = 37; this.label1.Text = "Body"; // // tabPage2 // this.tabPage2.Controls.Add(this.panel2); this.tabPage2.Controls.Add(this.panel1); this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Name = "tabPage2"; this.tabPage2.Size = new System.Drawing.Size(464, 454); this.tabPage2.TabIndex = 1; this.tabPage2.Text = "Result"; // // panel2 // this.panel2.Controls.Add(this.dataGrid1); this.panel2.Controls.Add(this.button4); this.panel2.Controls.Add(this.button3); this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.label6); this.panel2.Location = new System.Drawing.Point(8, 104); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(400, 320); this.panel2.TabIndex = 40; // // dataGrid1 // this.dataGrid1.BackgroundColor = System.Drawing.SystemColors.Control; this.dataGrid1.BorderStyle = System.Windows.Forms.BorderStyle.None; this.dataGrid1.CaptionVisible = false; this.dataGrid1.ColumnHeadersVisible = false; this.dataGrid1.DataMember = ""; this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.dataGrid1.Location = new System.Drawing.Point(8, 88); this.dataGrid1.Name = "dataGrid1"; this.dataGrid1.RowHeadersVisible = false; this.dataGrid1.RowHeaderWidth = 0; this.dataGrid1.Size = new System.Drawing.Size(384, 208); this.dataGrid1.TabIndex = 4; this.dataGrid1.CurrentCellChanged += new System.EventHandler(this.dataGrid1_CurrentCellChanged); // // button4 // this.button4.Location = new System.Drawing.Point(208, 56); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(136, 23); this.button4.TabIndex = 3; this.button4.Text = "Next Result Page"; this.button4.Click += new System.EventHandler(this.button4_Click); // // button3 // this.button3.Location = new System.Drawing.Point(64, 56); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(136, 23); this.button3.TabIndex = 2; this.button3.Text = "Previuos Result Page"; this.button3.Click += new System.EventHandler(this.button3_Click); // // label7 // this.label7.Location = new System.Drawing.Point(16, 32); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(368, 16); this.label7.TabIndex = 1; this.label7.Text = "label7"; // // label6 // this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))); this.label6.Location = new System.Drawing.Point(152, 8); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(88, 23); this.label6.TabIndex = 0; this.label6.Text = "Search Result"; // // panel1 // this.panel1.Controls.Add(this.textBox6); this.panel1.Controls.Add(this.button2); this.panel1.Location = new System.Drawing.Point(8, 16); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(400, 72); this.panel1.TabIndex = 39; // // textBox6 // this.textBox6.Location = new System.Drawing.Point(96, 8); this.textBox6.Multiline = true; this.textBox6.Name = "textBox6"; this.textBox6.Size = new System.Drawing.Size(296, 56); this.textBox6.TabIndex = 1; this.textBox6.Text = ""; // // button2 // this.button2.Location = new System.Drawing.Point(8, 24); this.button2.Name = "button2"; this.button2.TabIndex = 0; this.button2.Text = "Show query"; this.button2.Click += new System.EventHandler(this.button2_Click); // // label8 // this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204))); this.label8.Location = new System.Drawing.Point(88, 16); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(256, 16); this.label8.TabIndex = 53; this.label8.Text = "Attention: the conditions are joined by AND!"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(432, 462); this.Controls.Add(this.tabControl1); this.Name = "Form1"; this.Text = "Form1"; this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.groupBox3.ResumeLayout(false); this.groupBox5.ResumeLayout(false); this.groupBox4.ResumeLayout(false); this.groupBox2.ResumeLayout(false); this.groupBox1.ResumeLayout(false); this.tabPage2.ResumeLayout(false); this.panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); } #endregion /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.Run(new Form1()); } private void BindData() { InsumaFocus insfoc = new InsumaFocus(); Result r; query =form_query(start,Parse(textBox2.Text),radioButton4.Checked,radioButton3.Checked, Parse(textBox1.Text),radioButton1.Checked,radioButton2.Checked,Parse(textBox4.Text), radioButton8.Checked,Parse(textBox5.Text),radioButton10.Checked,Parse(textBox3.Text), radioButton12.Checked,radioButton6.Checked); r = insfoc.search_xml_str(query); int hits = int.Parse(r.hits.Trim()); int total_hits = int.Parse(r.total_hits.Trim()); bool total_hits_exact = r.total_hits_exact; panel1.Visible=true; panel2.Visible=true; if (total_hits_exact) { label7.Text = "Found documents:" + total_hits.ToString()+" ; Returned documents:" + hits.ToString(); } else { label7.Text = "Too many documents match"; } if(total_hits>0) { this._dv = (DataView)CreateDataSource(r.documents, start,hits); dataGrid1.DataSource = CreateDataSource(r.documents, start,hits); DataGridTableStyle ts1 = new DataGridTableStyle(); ts1.MappingName = "Table"; DataGridColumnStyle TextCol = new DataGridTextBoxColumn(); TextCol.MappingName = "IntegerValue"; TextCol.HeaderText = ""; TextCol.Width = 25; DataGridColumnStyle TextCol1 = new DataGridTextBoxColumn(); TextCol1.MappingName="Url"; TextCol1.HeaderText="Url"; TextCol1.Width=324; ts1.GridColumnStyles.Add(TextCol); ts1.GridColumnStyles.Add(TextCol1); dataGrid1.TableStyles.Clear(); dataGrid1.TableStyles.Add(ts1); } //show or not buttons to page through the result set //if number of returned documents more than 10 if(total_hits >= start+10) { button4.Visible = true; } else { button4.Visible = false; } if (start>1) { button3.Visible = true; } else { button3.Visible = false; } if(total_hits>0) { dataGrid1.Visible=true; } else { dataGrid1.Visible=false; } tabControl1.SelectedTab = tabPage2; textBox6.Text=""; } private void button1_Click(object sender, System.EventArgs e) { start = 1; BindData(); } ICollection CreateDataSource(Document[] docs, int start,int hits) { DataTable dt = new DataTable("Table"); DataRow dr; DataView dv = new DataView(); dt.Columns.Add(new DataColumn("IntegerValue", typeof(Int32))); dt.Columns.Add(new DataColumn("Url", typeof(string))); dt.Columns.Add(new DataColumn("Properties", typeof(string))); //write information into the table int pCopy = start; int pCopy2 = 0; for (int i = pCopy; iRedirect to document"; dr[1]=docs[pCopy2].url; NameValuePair[] prop = docs[pCopy2].properties; int l = prop.Length; for (int j=0; j"; } } if (txtDescription!= "") { if (bDescriptionExact) { mtype = "description"; } else { mtype = "description_morpho"; } vspom2 = ""; } if (txtKeywords!= "") { if (bKeywordsExact) { mtype = "keywords"; } else { mtype = "keywords_morpho"; } vspom3 = ""; } if (txtBody!= "") { if (bBodyExact) { mtype = "body"; } else { mtype = "body_morpho"; } vspom4 = ""; } if (txtHeading!= "") { if (bHeadingExact) { mtype = "headings"; } else { if (bHeadingMorpho) { mtype = "headings_morpho"; } else { mtype = "headings_phonetic"; } } if( !(txtBody != "" && txtHeading == txtBody && ((bBodyExact && bHeadingExact) || (bBodyMorpho && bHeadingMorpho))) ) { vspom5 = ""; } } query = "" + vspom1 + vspom2 + vspom3 + vspom4 + vspom5 + ""; return query; } private void dataGrid1_CurrentCellChanged(object sender, System.EventArgs e) { try { int curRow = this.dataGrid1.CurrentRowIndex; int index = int.Parse(this.dataGrid1[curRow,0].ToString()); this._dv.RowFilter="IntegerValue="+index.ToString(); string s = this._dv[0]["Properties"].ToString(); MessageBox.Show(s); this._dv.RowFilter=""; } catch{} } private void button3_Click(object sender, System.EventArgs e) { if(start>10) { start-=10; } else { start=1; } BindData(); } private void button4_Click(object sender, System.EventArgs e) { start+=10; BindData(); } private void button2_Click(object sender, System.EventArgs e) { textBox6.Text=query; } } }