I have multiple datagridview in my form, each bound to different list (of generic objects).
I need to create one routine to sort (thru Column Header Click) of any of these datagridviews.
I have a code that hard-code the field of the datasource as:
_dsrc.OrderBy(Function(x) CInt(x.ID)).ToList
But I need to write a code that will handle all of them without hard-coding.
Been searching for days online, but unable to find any.
Any help will be greatly appreciated.
I need to create one routine to sort (thru Column Header Click) of any of these datagridviews.
I have a code that hard-code the field of the datasource as:
_dsrc.OrderBy(Function(x) CInt(x.ID)).ToList
But I need to write a code that will handle all of them without hard-coding.
Been searching for days online, but unable to find any.
Any help will be greatly appreciated.