private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
  {

for(int i=0;i<e.Item.Cells.Count;i++)
   {
    if(e.Item.Cells[i].Controls.Count>0)
    {
     try
     {                                                                     //不是模板列时Control[0];
      TextBox shopname=(TextBox) e.Item.Cells[i].FindControl("shopname");
      TextBox shopaddr=(TextBox) e.Item.Cells[i].FindControl("shopaddr");
      TextBox shopphone=(TextBox) e.Item.Cells[i].FindControl("shopphone");
      shopname.Width=100;shopaddr.Width=100;shopphone.Width=100;

     }
     catch(System.Exception ee){}
    }
   }
}