Robert McLaws: FunWithCoding.NET

Public Shared Function BrainDump(ByVal dotNet As String) As [Value]

News

<script type="text/javascript"><!-- google_ad_client = "pub-4330602465258980"; google_hints = "ASP.NET, VB.NET, C#, C#.NET, WindowsForms, .NET Framework, VS2005, Visual Studio, XAML, WinFX, Windows Workflow, WPF, WCF, Atlas, NetFX3, Visual Studio Orcas"; google_ad_width = 120; google_ad_height = 240; google_ad_format = "120x240_as"; google_ad_type = "text_image"; google_ad_channel ="4997399242"; google_color_border = "B6C9E7"; google_color_bg = "EFEFEF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "002C99"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
<!--
-->

You should feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever. That said, I will most likely only delete abusive, profane, rude, or annonymous comments, so keep it polite, please.

Blogroll

Cool .NET Articles

My .NET Tools

My Builder.com Articles

My MSKB Articles

Scrolling Observations

I came across this very insightful post on the ASP.NET Forums (remember those?) about the pitfalls of making a DataGrid scroll. Great stuff. I hadn't even thought of trying points 3 and 4 that way.

Comments

Me again said:

I believe your requirements are contradictory:

a) Cross-browser so no client-side stuff
b) the obvious but unstated requirement that headers must line up with columns.

All design is trade-off but I think you can't achieve both (a) and (b) except in a specific limited set of cases (as a minimum fixed column widths, probably specified in pixels, not specified in CSS).

I'd want to add a requirement to hide the scrollbar unless it's needed, which also adds difficulty as the scrollbar width depends on the client PC display settings which are not available to you on the server (OK it's true the majority of users don't change it). And I'd also want to see columns aligned when the page is printed, preferably without the scrollbar.

I think to get an acceptable solution you'd need client-side script, so in many environments (especially Intranet) an htc solution is more likely to give acceptable results.
# December 4, 2003 2:12 PM

Robert McLaws said:

Since your comments are insightful I will leave them, but I've decided that I'm no longer keeping comments unless the commenter is clearly identified.
# December 4, 2003 2:34 PM

Johnny Hall said:

Hi. Your online demo isn't working:

"The located assembly's manifest definition with name 'Interscape.CodesideAssistance.ScrollingGrid' does not match the assembly reference. "

Thought this was the best place to let you know. Sorry if it isn't.
# December 4, 2003 5:10 PM

Robert McLaws said:

No, that's perfect. Thanks for the info, I'll check it out right away.
# December 4, 2003 5:14 PM

Robert McLaws said:

Fixed, thanks :).
# December 4, 2003 6:10 PM