private int SortDataLineByID(DataLineInfo dli1, DataLineInfo dli2) { DataCellInfo dci1 = dli1.GetCellData(0); DataCellInfo dci2 = dli2.GetCellData(0); int id1 = int.Parse(dci1.GetValue <string>()); int id2 = int.Parse(dci2.GetValue <string>()); if (id1 == id2) { return(0); } else if (id1 > id2) { return(1); } else { return(-1); } }
public DataLineInfo(int count) { datas = new DataCellInfo[count]; }
public void AddCellData(int index, int r, int c, object v) { datas[index] = new DataCellInfo(r, c, v); }