A similar behavior can be achieved for DataGridView as well. I have prepared a sample project for your reference. The attached gif file illustrates the obtained behavior. Please give the sample project a try and see how it works on your end.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Dess | Tech Support Engineer, Sr.
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.