private void Button4_Click(object sender, System.EventArgs e)
{
try
{
for(int i=1;i<=8;i++)
{
//string aa=this.DataGrid1.Items[0].Cells[i].Text.ToString();
if(this.DataGrid1.Items[0].Cells[0].Text.ToString()!="")
{
this.TextBox2.Text=""+this.DataGrid1.Items[2].Cells[0].Text.ToString()+"";
this.TextBox3.Text=""+this.DataGrid1.Items[2].Cells[1].Text.ToString()+"";
this.TextBox4.Text=""+this.DataGrid1.Items[2].Cells[2].Text.ToString()+"";
this.TextBox5.Text=""+this.DataGrid1.Items[2].Cells[3].Text.ToString()+"";
this.TextBox6.Text=""+this.DataGrid1.Items[2].Cells[4].Text.ToString()+"";
this.TextBox7.Text=""+this.DataGrid1.Items[2].Cells[5].Text.ToString()+"";
this.TextBox8.Text=""+this.DataGrid1.Items[2].Cells[6].Text.ToString()+"";
this.TextBox9.Text=""+this.DataGrid1.Items[2].Cells[7].Text.ToString()+"";
}
else
{
}
}
}
catch
{
Response.Write("输入有误");
}
}