如何控制DataGridView自定义数据源的显示顺序?
自定义一个类,如汽车类Car,如:
class Car
{
private string _carId = string.Empty;
private double _carX = 0.0;
private double _carY = 0.0;
private double _speed = 0.0;
private string _azimuth = string.Empty;
public Car(string carId, double x, double y, double speed)
{
this._carId = carId;
this._carX = x;
this._carY = y;
this._speed = speed;
}
public string CarId
{
get
{
return this._carId;
}
}
public double x
{
get
{
return this._carX;
}
}
public double y
{
get
{
return this._carY;
}
}
public double