Hi Ragul ,
Set the pagination to Virtual scrolling to freeze the datagrid 2 headers
Refer the below forum post
https://community.mendix.com/link/space/widgets/questions/116116
Refer the below post to freeze the column
https://community.mendix.com/link/space/studio-pro/questions/126019