The first one is too simple, so I won’t talk about it. The second one is also very simple, but everyone has different implementation methods. Here is a simpler method, which supports IE6, IE7, and FF2. Other browsers have not been tested (can be expanded Use it in ASP.NET GridView):