gridview中第三列的值格式为:“中文(英文)”、“中文|英文”
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.Cells.Count > 2)
{
string str = e.Row.Cells[2].Text;
int l = str.IndexOf('(');
if (l < 0 || (str.IndexOf('|') > 0 && l > str.IndexOf('|')))
l = str.IndexOf('|');
if (l > 0)
str = str.Substring(0, l);
e.Row.Cells[2].Text = str;
}
}