sort records in datagrid view html template

drashrafsabry

Well-known member
hello
records in table view is sorted according to what i need like asc, desc
but when i choose to create html template records are not sorted they are sorted according to creation instance

i need to sort them asc or desc according to a choosen field
 

eugenio

Administrator
Staff member
Hello,
the HTML template allows you to create a completely custom datagrid and it doesn't add automatically a sort link to your fields.
 

eugenio

Administrator
Staff member
You should mimic what DaDaBIK does with the sort links you see in the "normal" datagrid. There is no way to do it automatically.
 

bkim

Member
Hey Eugenio, I'm not sure if I should be resurrecting an old thread, but it seemed relevant.

In the view that the template DaDaBiK is referencing, the data is already presorted by the database view. I'm trying to maintain the integrity of that sort, but DaDaBiK seems to be sorting based on whichever column is being displayed first. Do you know where I can go to find where DaDaBiK sorts based on the first column?
 
Top