HI!
I am able to connect data from database to gridview... but my problem is... When data are bind to gridview, it is automatically sorted alphabetically... I want it to follow the sequence in the class that I declared... for example...
public class Structure
{
public int EventID { get; set; }
public DateTime EventDate { get; set; }
public DateTime EventTime { get; set; }
public string StructureName { get; set; }
public double Anomaly{ get; set; }
public double Northing { get; set; }
public double KP { get; set; }
public int TaskID { get; set; }
}
in the gridview it starts with Anomaly and etc........
I want it to sequence like the way I declared it... Is there such a way to do it?? Thanks!
I am able to connect data from database to gridview... but my problem is... When data are bind to gridview, it is automatically sorted alphabetically... I want it to follow the sequence in the class that I declared... for example...
public class Structure
{
public int EventID { get; set; }
public DateTime EventDate { get; set; }
public DateTime EventTime { get; set; }
public string StructureName { get; set; }
public double Anomaly{ get; set; }
public double Northing { get; set; }
public double KP { get; set; }
public int TaskID { get; set; }
}
in the gridview it starts with Anomaly and etc........
I want it to sequence like the way I declared it... Is there such a way to do it?? Thanks!