I have a datagridview that is populated with information.
I thought that clicking on header automatically sorts the information.
I have allowUserToOrderColumns set to true.
Is it because I am using linq and saving the information to a var rather than a datatable?
populating the information using linq
dbHCAEntities context = new dbHCAEntities();
var fam = from a in context.mfFamily
where a.memno == memno
Title = a.title,
LastName = a.namel,
FirstName = a.namef,
famid = a.famid
dgFamily.DataSource = fam;