{"id":205,"date":"2009-05-04T08:36:00","date_gmt":"2009-05-04T03:06:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=205"},"modified":"2009-05-04T08:36:00","modified_gmt":"2009-05-04T03:06:00","slug":"freeze-header-and-the-first-column-of-the-gridview-control","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/","title":{"rendered":"Freeze header and the first column of the GridView control"},"content":{"rendered":"<div align=\"justify\"><span>There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. <\/span><\/div>\n<div align=\"justify\"><span><\/span><\/div>\n<div align=\"justify\"><span><br \/><\/span><\/div>\n<div align=\"justify\"><span>There is no direct property that would allow users to either fix the header or the column. The html concept of <\/span><\/p>\n<th>was hard to find with GridView control.<\/p>\n<div align=\"justify\"><span><br \/><\/span><\/div>\n<div align=\"justify\"><span>We found a solution that used stylesheet to freeze the header and the columns. This code really helped us achieve our goals.<\/span><\/div>\n<div align=\"justify\"><span><br \/><\/span><\/div>\n<div align=\"justify\"><span><\/span><\/div>\n<div align=\"justify\"><span>Here it is&#8230; <br \/><\/span><\/div>\n<div align=\"justify\"><span>Place your gridview under DIV. This div should contains style value as<br \/><\/span><\/div>\n<p><strong><\/p>\n<blockquote>\n<p align=\"justify\"><span><strong>style=&#8221;height:500px; width:100%; overflow:auto;&#8221; <\/strong><\/span><\/p>\n<\/blockquote>\n<div align=\"justify\"><span><span><strong>overflow:auto:<\/strong> to display the scroll bars when grid contents exceeds the grid height<\/span><\/span><\/div>\n<div align=\"justify\"><span><span><\/p>\n<p><\/span><\/span><\/div>\n<div align=\"justify\"><span><span>Instead of hard coding div height if you need to apply the height as the page height you can refer to the following article, <\/span><\/span><a href=\"http:\/\/inogic.blogspot.com\/2009\/02\/automatically-resize-iframe-to-adjust.html\"><span>http:\/\/inogic.blogspot.com\/2009\/02\/automatically-resize-iframe-to-adjust.html<\/span><\/a><\/div>\n<div align=\"justify\"><span>In gridview header provide class name from stylesheet i.e. Freezing<\/span><\/div>\n<div align=\"justify\"><span><strong><br \/><\/strong>The above line will freeze the header row<\/p>\n<p><\/span><\/div>\n<div align=\"justify\"><span><\/span><\/div>\n<div align=\"justify\"><span>To freeze the first column use below code for first column at run time<\/span><\/div>\n<div align=\"justify\"><span><strong>gvFix.HeaderRow.Cells[0].CssClass = &#8220;locked&#8221;;<\/strong><\/span><\/div>\n<div align=\"justify\"><span><br \/><\/span><\/div>\n<div align=\"justify\"><span>foreach (GridViewRow row in gvFix.Rows)<\/span><\/div>\n<div align=\"justify\"><span>{ \/\/stylesheet to firstcol <\/span><\/div>\n<div align=\"justify\"><span>row.Cells[0].CssClass = &#8220;locked&#8221;;<\/span><\/div>\n<div align=\"justify\"><span>}<br \/><\/span><\/div>\n<div align=\"justify\"><span>Here are the Stylesheet classes that are being referred above<\/span><\/div>\n<div align=\"justify\"><span><\/p>\n<p><\/span><span><strong>\/* Locks the left column *\/<\/strong><\/span><\/div>\n<div align=\"justify\"><span>td.locked, th.locked {<\/span><\/div>\n<div align=\"justify\"><span>position:relative;<\/span><\/div>\n<div align=\"justify\"><span>cursor: default;<\/span><\/div>\n<div align=\"justify\"><span>left: expression(document.getElementById(&#8220;div_gridholder&#8221;).scrollLeft); \/* div_gridholder : name of the div which holds gridview*\/<\/span><\/div>\n<div align=\"justify\"><span>}<\/span><\/div>\n<p><span><\/p>\n<div align=\"justify\"><\/div>\n<div align=\"justify\">\n<p><strong>\/* Locks the header *\/<\/strong><\/div>\n<div align=\"justify\"><span>.FreezeHeader { <\/span><\/div>\n<div align=\"justify\"><span>position:relative ; <\/span><\/div>\n<div align=\"justify\"><span>top:expression(this.offsetParent.scrollTop &#8211; 2); <\/span><\/div>\n<div align=\"justify\"><span>z-index: 20; <\/span><\/div>\n<div align=\"justify\"><span>}<\/span><\/div>\n<div align=\"justify\"><span><\/p>\n<p><\/span><\/div>\n<p><\/span><\/p>\n<div align=\"justify\"><span>Hope this helps others give the option of Freezing rows and columns in grid controls.<\/span><\/div>\n<div align=\"justify\"><span><\/span><\/div>\n<p><\/strong><\/th>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control. We found a solution\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/\">Read More: Freeze header and the first column of the GridView control &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,19],"tags":[150,875],"class_list":["post-205","post","type-post","status-publish","format-standard","hentry","category-controls","category-dynamics-crm","tag-asp-net","tag-gridview"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Tushar\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta property=\"og:description\" content=\"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2009-05-04T03:06:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2009-05-04T03:06:00+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inogicindia\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks\" \/>\n\t\t<meta name=\"twitter:description\" content=\"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@inogic\" \/>\n\t\t<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t\t<meta name=\"twitter:data1\" content=\"Tushar\" \/>\n\t\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#blogposting\",\"name\":\"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"headline\":\"Freeze header and the first column of the GridView control\",\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#articleImage\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"datePublished\":\"2009-05-04T08:36:00+05:30\",\"dateModified\":\"2009-05-04T08:36:00+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#webpage\"},\"articleSection\":\"Controls, Dynamics CRM, ASP .NET, GridView\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/controls\\\/#listItem\",\"name\":\"Controls\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/controls\\\/#listItem\",\"position\":2,\"name\":\"Controls\",\"item\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/controls\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#listItem\",\"name\":\"Freeze header and the first column of the GridView control\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#listItem\",\"position\":3,\"name\":\"Freeze header and the first column of the GridView control\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/category\\\/controls\\\/#listItem\",\"name\":\"Controls\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"By Inogic\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inogic-logo.png\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#organizationLogo\",\"width\":1000,\"height\":325,\"caption\":\"inogic logo\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inogicindia\",\"https:\\\/\\\/twitter.com\\\/inogic\",\"https:\\\/\\\/www.instagram.com\\\/inogicindia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCM4V7ousgLSu1hbOEv4DUuQ\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/inogicindia\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/\",\"name\":\"Tushar\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Tushar\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#webpage\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/\",\"name\":\"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks\",\"description\":\"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/2009\\\/05\\\/freeze-header-and-the-first-column-of-the-gridview-control\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/author\\\/inogic-2\\\/#author\"},\"datePublished\":\"2009-05-04T08:36:00+05:30\",\"dateModified\":\"2009-05-04T08:36:00+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/\",\"name\":\"Microsoft Dynamics 365 CRM Tips and Tricks\",\"alternateName\":\"Inogic\",\"description\":\"By Inogic\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inogic.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that","canonical_url":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#blogposting","name":"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks","headline":"Freeze header and the first column of the GridView control","author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/#articleImage","width":1000,"height":325,"caption":"inogic logo"},"datePublished":"2009-05-04T08:36:00+05:30","dateModified":"2009-05-04T08:36:00+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#webpage"},"isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#webpage"},"articleSection":"Controls, Dynamics CRM, ASP .NET, GridView"},{"@type":"BreadcrumbList","@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.inogic.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/controls\/#listItem","name":"Controls"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/controls\/#listItem","position":2,"name":"Controls","item":"https:\/\/www.inogic.com\/blog\/category\/controls\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#listItem","name":"Freeze header and the first column of the GridView control"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#listItem","position":3,"name":"Freeze header and the first column of the GridView control","previousItem":{"@type":"ListItem","@id":"https:\/\/www.inogic.com\/blog\/category\/controls\/#listItem","name":"Controls"}}]},{"@type":"Organization","@id":"https:\/\/www.inogic.com\/blog\/#organization","name":"Microsoft Dynamics 365 CRM Tips and Tricks","description":"By Inogic","url":"https:\/\/www.inogic.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/02\/inogic-logo.png","@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#organizationLogo","width":1000,"height":325,"caption":"inogic logo"},"image":{"@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/inogicindia","https:\/\/twitter.com\/inogic","https:\/\/www.instagram.com\/inogicindia\/","https:\/\/www.youtube.com\/channel\/UCM4V7ousgLSu1hbOEv4DUuQ","https:\/\/www.linkedin.com\/company\/inogicindia"]},{"@type":"Person","@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author","url":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/","name":"Tushar","image":{"@type":"ImageObject","@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/839d9ae7d2b941d2d09e91df322267a429821f2ce5494302b53bd5ca3679f1a0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Tushar"}},{"@type":"WebPage","@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#webpage","url":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/","name":"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks","description":"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.inogic.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/#breadcrumblist"},"author":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"creator":{"@id":"https:\/\/www.inogic.com\/blog\/author\/inogic-2\/#author"},"datePublished":"2009-05-04T08:36:00+05:30","dateModified":"2009-05-04T08:36:00+05:30"},{"@type":"WebSite","@id":"https:\/\/www.inogic.com\/blog\/#website","url":"https:\/\/www.inogic.com\/blog\/","name":"Microsoft Dynamics 365 CRM Tips and Tricks","alternateName":"Inogic","description":"By Inogic","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.inogic.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Microsoft Dynamics 365 CRM Tips and Tricks - By Inogic","og:type":"article","og:title":"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks","og:description":"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that","og:url":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/","article:published_time":"2009-05-04T03:06:00+00:00","article:modified_time":"2009-05-04T03:06:00+00:00","article:publisher":"https:\/\/www.facebook.com\/inogicindia","twitter:card":"summary_large_image","twitter:site":"@inogic","twitter:title":"Freeze header and the first column of the GridView control - Microsoft Dynamics 365 CRM Tips and Tricks","twitter:description":"There have been often times when the customers (familiar with Excel Freeze Options) have asked for the same functionality on ASP .NET forms. There is no direct property that would allow users to either fix the header or the column. The html concept of was hard to find with GridView control.We found a solution that","twitter:creator":"@inogic","twitter:label1":"Written by","twitter:data1":"Tushar","twitter:label2":"Est. reading time","twitter:data2":"1 minute"},"aioseo_meta_data":{"post_id":"205","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-02-02 05:51:55","updated":"2025-07-03 21:06:44","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.inogic.com\/blog\/category\/controls\/\" title=\"Controls\">Controls<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tFreeze header and the first column of the GridView control\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.inogic.com\/blog"},{"label":"Controls","link":"https:\/\/www.inogic.com\/blog\/category\/controls\/"},{"label":"Freeze header and the first column of the GridView control","link":"https:\/\/www.inogic.com\/blog\/2009\/05\/freeze-header-and-the-first-column-of-the-gridview-control\/"}],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/205","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=205"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}