Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

gridview column cell alignment form c#

protected void GridView1_PreRender(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
if (row.RowType == DataControlRowType.DataRow)
{
row.Cells[0].HorizontalAlign = HorizontalAlign.Left;
}
}
}
Source by dailydotnettips.com #
 
PREVIOUS NEXT
Tagged: #gridview #column #cell #alignment #form
ADD COMMENT
Topic
Name
6+5 =