Regards, Sheo Narayan http://www.dotnetfunda.com
One person's data is another person's program.
ItemStyle-Wrap="true"
<ItemStyle Wrap="true" />
GridView2.RowDataBound += new GridViewRowEventHandler(GridView2_RowDataBound);
void GridView2_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.Header || e.Row.RowType == DataControlRowType.DataRow) { foreach (TableCell item in e.Row.Cells) { item.Wrap = true; item.Width = 100; } } }
Login to post response