int intID=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; string sel="select id from table where id =" +intID.ToString(); this.TextBox1.Text=sel.ToString();
以下是引用xiaoyixyz在2006-12-20 10:57:55的发言: int intID=(int)DataGrid1.DataKeys[e.Item.ItemIndex]; string sel="select id from table where id =" +intID.ToString(); this.TextBox1.Text=sel.ToString();