1
Answer

Dyamamic cally change data form of gridview date column

Susanta Rout

Susanta Rout

8y
215
1
how change dymaically date forat of gridview according to my string during gridview calling

Answers (1)
0
Midhun T P

Midhun T P

NA 19.7k 281.1k 8y
Hi,
You can bind date using row data bound event in gridview -
protected void grdview_OnRowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
//Here you can bind date according to your format
e.Row.Cells[0].Text = DateTime.Parse(e.Row.Cells[0].Text).ToShortDateString();
}
}