Answers for "how to center the text on a cell in gridview in c# windows form"

C#
0

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;
}
}
}
Posted by: Guest on September-02-2021

Code answers related to "how to center the text on a cell in gridview in c# windows form"

C# Answers by Framework

Browse Popular Code Answers by Language