﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>In2Code - Blog</title>
    <description />
    <link>http://blog.in2software.dk/</link>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>BlogEngine.NET 1.4.0.0</generator>
<atom:link href="http://blog.in2software.dk/syndication.axd" rel="self" type="application/rss+xml" /><language>en-GB</language><blogChannel:blogRoll>http://blog.in2software.dk/opml.axd</blogChannel:blogRoll><blogChannel:blink>http://www.dotnetblogengine.net/syndication.axd</blogChannel:blink><dc:creator>Søren Eilsø</dc:creator><dc:title>In2Code - Blog</dc:title><item><title>Web Developer Tools you can't live without...</title><description>&lt;p&gt;
&lt;img style="margin-left: 20px; width: 139px; height: 176px" src="/images/mig2.jpg" alt="" width="139" height="176" align="right" /&gt;Below you&amp;#39;ll find links to a lot of tools that will help you write better code faster.&lt;br /&gt;
Tools I&amp;#39;ve been collecting during&amp;nbsp;the years of my programming life.&lt;br /&gt;
The faster you write code, the more money you earn!&lt;br /&gt;
&lt;br /&gt;
I would like to share these tools with you. &lt;br /&gt;
Some are free and some are not.&lt;br /&gt;
I&amp;#39;ll give you a short description of each tool,&amp;nbsp;but you&amp;#39;ll have to learn how to use them yourself.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&amp;amp;displaylang=en" target="_blank"&gt;&lt;strong&gt;IE WebDeveloper Toolbar:&lt;br /&gt;
&lt;/strong&gt;&lt;/a&gt;Is a free&amp;nbsp;plugin for Internet Explorer from Microsoft.&lt;br /&gt;
Features: 
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Explore and modify the document object model (DOM) of a Web page. &lt;/li&gt;
	&lt;li&gt;Locate and select specific elements on a Web page through a variety of techniques. &lt;/li&gt;
	&lt;li&gt;Selectively disable Internet Explorer settings. &lt;/li&gt;
	&lt;li&gt;View HTML object class names, ID&amp;#39;s, and details such as link paths, tab index values, and access keys. &lt;/li&gt;
	&lt;li&gt;Outline tables, table cells, images, or selected tags. &lt;/li&gt;
	&lt;li&gt;Validate HTML, CSS, WAI, and RSS Web feed links. &lt;/li&gt;
	&lt;li&gt;Display image dimensions, file sizes, path information, and alternate (ALT) text. &lt;/li&gt;
	&lt;li&gt;Immediately resize the browser window to a new resolution. &lt;/li&gt;
	&lt;li&gt;Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain. &lt;/li&gt;
	&lt;li&gt;Display a fully featured design ruler to help accurately align and measure objects on your pages. &lt;/li&gt;
	&lt;li&gt;Find the style rules used to set specific style values on an element. &lt;/li&gt;
	&lt;li&gt;View the formatted and syntax colored source of HTML and CSS. &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.positioniseverything.net/" target="_blank"&gt;PositionIsEverything.net:&lt;/a&gt;&lt;br /&gt;
As a webdeveloper you are familar with the hassle og designing webpages for different browsers.&lt;br /&gt;
This tool comes in very handy with hundreds og hacks and workarounds.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;ll also recommend these sites:&amp;nbsp;&lt;br /&gt;
&lt;a href="http://quirksmode.org/" target="_blank"&gt;QuirksMode.org&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://htmldog.com/" target="_blank"&gt;HTMLDog.com&lt;br /&gt;
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://browsershots.org/" target="_blank"&gt;Browsershots:&lt;/a&gt;&lt;br /&gt;
Makes screenshots of your website in different browsers. &lt;br /&gt;
It is a free open-source service started by Johann C. Rocholl. &lt;br /&gt;
When you enter your URL, it will be put in the queue for &amp;quot;treatment&amp;quot;. &lt;br /&gt;
A certain number of distributed computers will open your website in their browser. &lt;br /&gt;
Then they will take screenshots of your site and uploading them to the central server.&lt;br /&gt;
It&amp;#39;s a must have tool for front end developers. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.devexpress.com/Products/Visual_Studio_Add-in/RefactorASP/index.xml" target="_blank"&gt;Refractor for ASP.NET:&lt;br /&gt;
&lt;/a&gt;Offers a comprehensive suite of tools that enable you to simplify and shape complex code and HTML markup.&lt;br /&gt;
Making your web applications easier to read and less costly to maintain. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.jetbrains.com/profiler/" target="_blank"&gt;dotTrace:&lt;/a&gt;&lt;br /&gt;
If you don&amp;#39;t messure your code with a good profiler you are missing important metrics and a clear understanding of what your code is doing.&lt;br /&gt;
&lt;br /&gt;
Profilers measure how many times each line in your code is hit and how long it takes to execute that line.&lt;br /&gt;
You&amp;#39;ll be surprised how fast code you can write using this tool. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.isapirewrite.com/" target="_blank"&gt;ISAPI_Rewrite from Hellicon:&lt;br /&gt;
&lt;/a&gt;Is a powerful URL manipulation engine based on regular expressions. &lt;br /&gt;
It acts mostly like Apache&amp;#39;s mod_Rewrite, but is designed specifically for Microsoft&amp;#39;s Internet Information Server (IIS). &lt;br /&gt;
ISAPI_Rewrite is an ISAPI filter written in pure C/C++ so it is extremely fast. &lt;br /&gt;
ISAPI_Rewrite gives you the freedom to go beyond the standard URL schemes and develop your own scheme. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://codechanger.com" target="_blank"&gt;Online Code Converter from Telerik:&lt;br /&gt;
&lt;/a&gt;Is a free and simple VB to C# and C# to VB code converter. &lt;br /&gt;
While there are several other good code converters available, none are perfect. &lt;br /&gt;
Some are buried in busy websites. Some are awkward to use. Some just don&amp;#39;t convert accurately! &lt;br /&gt;
Code Converter, while not yet perfect, aims to address these issues and provide the best free .NET converter available on the web. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.red-gate.com/products/reflector/" target="_blank"&gt;Reflector:&lt;br /&gt;
&lt;/a&gt;Enables you to easily view, navigate, and search through, the class hierarchies of .NET assemblies, even if you don&amp;#39;t have the code for them. &lt;br /&gt;
With it, you can decompile and analyze .NET assemblies in C#, Visual Basic, and IL. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx" target="_blank"&gt;Process Explorer:&lt;br /&gt;
&lt;/a&gt;Have&amp;nbsp;you ever wondered which program has a particular file or directory open? &lt;br /&gt;
Now you can find out. &lt;br /&gt;
&lt;em&gt;Process Explorer&lt;/em&gt; shows you information about which handles and DLLs processes have opened or loaded. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
That all for now!&lt;br /&gt;
Happy Coding&amp;nbsp; :0) 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
</description><link>http://blog.in2software.dk/post/2009/01/23/Developer-Tools-you-cant-live-without.aspx</link><author>eilsoe.nospam@nospam.in2software.dk (wwwizard)</author><comments>http://blog.in2software.dk/post/2009/01/23/Developer-Tools-you-cant-live-without.aspx#comment</comments><guid>http://blog.in2software.dk/post.aspx?id=99b3ddb7-5b15-4735-a305-04697482e59e</guid><pubDate>Fri, 23 Jan 2009 16:25:00 +0100</pubDate><category>ASP.Net</category><dc:publisher>wwwizard</dc:publisher><pingback:server>http://blog.in2software.dk/pingback.axd</pingback:server><pingback:target>http://blog.in2software.dk/post.aspx?id=99b3ddb7-5b15-4735-a305-04697482e59e</pingback:target><slash:comments>0</slash:comments><trackback:ping>http://blog.in2software.dk/trackback.axd?id=99b3ddb7-5b15-4735-a305-04697482e59e</trackback:ping><wfw:comment>http://blog.in2software.dk/post/2009/01/23/Developer-Tools-you-cant-live-without.aspx#comment</wfw:comment><wfw:commentRss>http://blog.in2software.dk/syndication.axd?post=99b3ddb7-5b15-4735-a305-04697482e59e</wfw:commentRss></item><item><title>GridView with fixed row height - FIXED!</title><description>&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;
How can&amp;nbsp;something that&amp;nbsp;should be so easy, be so difficult ??? &lt;br /&gt;
&lt;br /&gt;
If you have tried to use a Gridview, where&amp;nbsp;some of the columns contains a&amp;nbsp;lot of text.&amp;nbsp;You maybe know what I am talking about ... &lt;br /&gt;
You get some very high&amp;nbsp;rows who are destroying the entire design of&amp;nbsp;your page. &lt;br /&gt;
To be honest, it looks like crap! &lt;br /&gt;
&lt;br /&gt;
Here&amp;#39;s an example: 
&lt;/div&gt;
&lt;div dir="ltr"&gt;
&amp;nbsp;&lt;img style="width: 454px; height: 684px" src="http://in2software.dk/UserFiles/images/grid-before.jpg" alt="" width="454" height="684" /&gt; 
&lt;/div&gt;
&lt;div dir="ltr"&gt;
&lt;p&gt;
&lt;br /&gt;
&lt;br /&gt;
And that&amp;#39;s&amp;nbsp;only 2 rows! &lt;br /&gt;
Microsoft please - give us a fixed rowheight! &lt;br /&gt;
Believe me when I say that it doesn&amp;#39;t help to&amp;nbsp;set the&amp;nbsp;height&amp;nbsp;to 20 or 15 pixels.&lt;br /&gt;
GridView is totally indifferent :0( &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you only have to use your Gridview&amp;nbsp;with a single table the solution is very simple. &lt;br /&gt;
Connect your grid view with a datasource, so you get your columns delivered free of charge.&amp;nbsp;&lt;br /&gt;
Transform your&amp;nbsp;columns&amp;nbsp;into TemplatedFields. Now you can wrap&amp;nbsp;the whole package into a div and hide the&amp;nbsp;overflowing text, as shown in the code below.&amp;nbsp; 
&lt;/p&gt;
&lt;div style="line-height: normal"&gt;
&lt;span style="font-size: 10pt; color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon"&gt;asp&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon"&gt;TemplateField&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue"&gt;&amp;gt;&lt;/span&gt; 
&lt;/div&gt;
&lt;div style="line-height: normal"&gt;
&lt;span style="font-size: 10pt; color: blue"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon"&gt;div&lt;/span&gt;&lt;span style="font-size: 10pt"&gt; &lt;span style="color: red"&gt;style&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;height:15px;overflow:hidden&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;&lt;/span&gt;&lt;span style="color: maroon"&gt;asp&lt;/span&gt;&lt;span style="color: blue"&gt;:&lt;/span&gt;&lt;span style="color: maroon"&gt;Label&lt;/span&gt; &lt;span style="color: red"&gt;id&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;lbl&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;runat&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color: red"&gt;text&lt;/span&gt;&lt;span style="color: blue"&gt;=&amp;#39;&lt;/span&gt;&lt;span style="background: yellow"&gt;&amp;lt;%&lt;/span&gt;# eval(&amp;quot;Description&amp;quot;)&lt;span style="background: yellow"&gt;%&amp;gt;&lt;/span&gt;&lt;span style="color: blue"&gt;&amp;#39; /&amp;gt;&lt;/span&gt;&lt;/span&gt; 
&lt;/div&gt;
&lt;div style="line-height: normal"&gt;
&lt;span style="font-size: 10pt; color: blue"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon"&gt;div&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue"&gt;&amp;gt;&lt;/span&gt; 
&lt;/div&gt;
&lt;div style="margin: 0cm 0cm 10pt"&gt;
&lt;span style="font-size: 10pt; color: blue; line-height: 115%"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; line-height: 115%"&gt;asp&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; line-height: 115%"&gt;:&lt;/span&gt;&lt;span style="font-size: 10pt; color: maroon; line-height: 115%"&gt;TemplateField&lt;/span&gt;&lt;span style="font-size: 10pt; color: blue; line-height: 115%"&gt;&amp;gt;&lt;/span&gt; 
&lt;/div&gt;
&lt;p&gt;
&lt;br /&gt;
But when you do not know in advance&amp;nbsp;which table your Gridview will be associated with,&amp;nbsp;you immediately have problems.&lt;br /&gt;
Problems like this should be solved just by setting a rowheight property&amp;nbsp;to 15px. &lt;br /&gt;
&lt;br /&gt;
Well, I began to look for a solution&amp;nbsp;on the web&amp;nbsp;and discovered that I certainly was not alone with my problem. &lt;br /&gt;
After 2&amp;frac12; hours of surfing I gave&amp;nbsp;up - there were apparently no one who had solved this problem ...&lt;br /&gt;
&lt;br /&gt;
Very&amp;nbsp;frustrated, I&amp;nbsp;began to think - sometimes&amp;nbsp;that really helps - my experience with the gridview told me that it is in RowDataBound event &amp;nbsp;things are happening. &lt;br /&gt;
Hmmm - we have a whole&amp;nbsp;row filled with cells, what if we take the text out of each cell and put a Label in there instead, put some styles on the&amp;nbsp;label and then we paste the text into our new label.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
It is worth a try&amp;nbsp;!&amp;nbsp; 
&lt;/p&gt;
&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;
&lt;p&gt;
&lt;font size="2" color="#0000ff"&gt;Protected&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#3366ff"&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; gvTable_RowDataBound(&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; sender &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt;, &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; e &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; System.Web.UI.WebControls.GridViewRowEventArgs) &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Handles&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; gvTable.RowDataBound&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;
&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;If&lt;/font&gt;&lt;/font&gt; e.Row.RowType = DataControlRowType.DataRow &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Then&lt;br /&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Each&lt;/font&gt;&lt;/font&gt; tc &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt; TableCell &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;In&lt;/font&gt;&lt;/font&gt; e.Row.Cells&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/font&gt;&lt;/font&gt; l &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;New&lt;/font&gt;&lt;/font&gt; Label&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Height = 15&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Style.Add(&lt;font color="#800000"&gt;&lt;font color="#800000"&gt;&amp;quot;Overflow-y&amp;quot;&lt;/font&gt;&lt;/font&gt;, &lt;font color="#800000"&gt;&lt;font color="#800000"&gt;&amp;quot;hidden&amp;quot;&lt;/font&gt;&lt;/font&gt;)&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Text = tc.Text&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tc.Text = &lt;font color="#800000"&gt;&lt;font color="#800000"&gt;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tc.Controls.Add(l)&lt;br /&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;Next&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;
&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;End&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;End&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;
&lt;br /&gt;
Yes Yes Yes it works!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But it would be really nice if we could read the text in a tooltip, so&amp;nbsp;let&amp;#39;s try again: 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;font size="2" color="#0000ff"&gt;Protected&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#3366ff"&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; gvTable_RowDataBound(&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; sender &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Object&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt;, &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;ByVal&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; e &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; System.Web.UI.WebControls.GridViewRowEventArgs) &lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Handles&lt;/font&gt;&lt;/font&gt;&lt;font color="#000000"&gt; gvTable.RowDataBound&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;If&lt;/font&gt;&lt;/font&gt; e.Row.RowType = DataControlRowType.DataRow &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Then&lt;br /&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Each&lt;/font&gt;&lt;/font&gt; tc &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt; TableCell &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;In&lt;/font&gt;&lt;/font&gt; e.Row.Cells&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/font&gt;&lt;/font&gt; l &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;As&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;New&lt;/font&gt;&lt;/font&gt; Label&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Height = 15&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Style.Add(&lt;font color="#800000"&gt;&lt;font color="#800000"&gt;&amp;quot;Overflow-y&amp;quot;&lt;/font&gt;&lt;/font&gt;, &lt;font color="#800000"&gt;&lt;font color="#800000"&gt;&amp;quot;hidden&amp;quot;&lt;/font&gt;&lt;/font&gt;)&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.Text = tc.Text&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font style="background-color: #ffff00"&gt;l.ToolTip = tc.Text&lt;/font&gt;&lt;br /&gt;
&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tc.Text = &lt;font color="#800000"&gt;&lt;font color="#800000"&gt;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tc.Controls.Add(l)&lt;br /&gt;
&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;font size="2"&gt;Next&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;
&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;End&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;If&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;font size="2"&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;End&lt;/font&gt;&lt;/font&gt; &lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;Sub&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff"&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
I think we are just about there ...&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Now our Grid View like this:&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://in2software.dk/UserFiles/images/grid-after.jpg" alt="" width="500" height="390" /&gt;&lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
That is certainly something nicer. &lt;br /&gt;
&lt;br /&gt;
So it&amp;nbsp;still ended up being a nice day: 0) 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
</description><link>http://blog.in2software.dk/post/2008/11/18/GridView-with-fixed-row-height-FIXED!.aspx</link><author>eilsoe.nospam@nospam.in2software.dk (wwwizard)</author><comments>http://blog.in2software.dk/post/2008/11/18/GridView-with-fixed-row-height-FIXED!.aspx#comment</comments><guid>http://blog.in2software.dk/post.aspx?id=407a188f-710c-410c-bbb7-77f6db6c0f87</guid><pubDate>Tue, 18 Nov 2008 23:50:00 +0100</pubDate><category>ASP.Net</category><dc:publisher>wwwizard</dc:publisher><pingback:server>http://blog.in2software.dk/pingback.axd</pingback:server><pingback:target>http://blog.in2software.dk/post.aspx?id=407a188f-710c-410c-bbb7-77f6db6c0f87</pingback:target><slash:comments>0</slash:comments><trackback:ping>http://blog.in2software.dk/trackback.axd?id=407a188f-710c-410c-bbb7-77f6db6c0f87</trackback:ping><wfw:comment>http://blog.in2software.dk/post/2008/11/18/GridView-with-fixed-row-height-FIXED!.aspx#comment</wfw:comment><wfw:commentRss>http://blog.in2software.dk/syndication.axd?post=407a188f-710c-410c-bbb7-77f6db6c0f87</wfw:commentRss></item></channel>
</rss>