Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 5th, 2004, 03:44 AM
Registered User
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to set row height(fixed to 1 pixe) in DataGrid


i am developing one datagrid , But i am haveing one problem to set the row size to 1(one)pixel. how to solve this problem. i need the help full code about this .

Old May 5th, 2004, 09:46 AM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

What good does a row that's 1 pixel high in a datagrid do? Can you explain what you are trying to accomplish with this 1 pixel high row? There may be something that the datagrid can do that you are overlooking (or unaware of).

Normally, you can't really adjust the height of a grid row, and usually you wouldn't want to because it will contain varying data. Forcing a height could cut off your data. Plus, I don't think the rules of HTML would allow you to "clip" the contents of a cell without explicitly setting the clipping style attribute.

Work smarter, not harder

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed table height and row height rajanikrishna HTML Code Clinic 3 January 18th, 2007 12:42 AM
Fit the row height dinamically in a datagrid Lukas C# 1 June 7th, 2006 03:06 AM
Fixed row in datagrid JCP General .NET 1 January 13th, 2005 05:56 PM
Row Height aspadda Excel VBA 0 February 25th, 2004 03:48 PM
Fixed height cells in tables 12th_Man HTML Code Clinic 1 July 11th, 2003 01:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.