在
ItemDataBound事件中写
'modi by mingfei 20070712防止身份证号导出时变换成科学计数cell(4)为字符型数字
If (e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem) Then
e.Item.Cells(4).Attributes.Add("style", "vnd.ms-excel.numberformat:@")
End If