Exemplo n.º 1
0
        private void dataGridDuplicatas_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (LIS_DUPLICATAPAGARColl.Count > 0)
            {
                string orderBy = DataGridRelaDupl.Columns[e.ColumnIndex].DataPropertyName;
                Phydeaux.Utilities.DynamicComparer <LIS_DUPLICATAPAGAREntity> comparer = new Phydeaux.Utilities.DynamicComparer <LIS_DUPLICATAPAGAREntity>(orderBy);

                LIS_DUPLICATAPAGARColl.Sort(comparer.Comparer);

                DataGridRelaDupl.DataSource = null;
                DataGridRelaDupl.DataSource = LIS_DUPLICATAPAGARColl;
            }
        }