Avatar of nkhelashvili
nkhelashvili

asked on 

Add calculated field to GridView

I have following  fields in the table:  

ID  int  ,
DateStart DateTime.
DateEnd   DateTime


I want  to add calculated field besides these fields  in GridView in asp.net but not by adding calculated field
to my table and not by adding calculated column in sql query.

I want to format that field using C#  syntax like this:   DateStart.ToShortDateString() + " - "   DateEnd.ToShortDateString()




.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
nkhelashvili

8/22/2022 - Mon