对于房号列,排序,默认会这样排,要实现11-1过了是11-2……11-10这种,就得自定义转为数字
/// <summary>
/// 排序规则
/// </summary>
private bool _BH_ASC = false;
/// <summary>
/// 点击表头事件排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void dgvData_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
DataTable dt = (DataTable)this.dgvData.DataSource;
DataView dv = dt.DefaultView;
DataColumn tempcolumn = new DataColumn();
tempcolumn.ColumnName = "房号排序";//增加一列,