473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

DataGridView - Fixed Row Height

Is it possible to fix the row height of a data grid view row?

Thanks!
Jan 25 '07 #1
2 14099
In the designer, set AllowUserToResizeRows to False,
set AutoSizeRowsMode to None, and in the RowTemplate property,
set the Height. Or did you mean to fix the row height of only
one row in the grid, different from all the rest. (I don't
think so.)

Robin S.
-------------------------------------
"Spam Catcher" <sp**********@rogers.comwrote in message
news:Xn**********************************@127.0.0. 1...
Is it possible to fix the row height of a data grid view row?

Thanks!

Jan 25 '07 #2
"RobinS" <Ro****@NoSpam.yah.nonewrote in
news:Zd******************************@comcast.com:
In the designer, set AllowUserToResizeRows to False,
set AutoSizeRowsMode to None, and in the RowTemplate property,
set the Height. Or did you mean to fix the row height of only
one row in the grid, different from all the rest. (I don't
think so.)
I mean "lock the row heights".

I think your suggestion is what I'm looking for. I'm going to give it a try
:-)
Jan 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jyrki | last post by:
Hello, I have a small problem in regards to DataGridView component. I would like to know how to set row heights in a DataGridView. Sofar, I have used command: ...
0
by: mafandon | last post by:
Let's see if I can explain this one: I have a datagridview that populates with only 2 columns. The problem is I'm trying to avoid having to scroll vertically. I have a fixed height form that...
0
by: mafandon | last post by:
I have a datagridview that populates with only 2 columns. The problem is I'm trying to avoid having to scroll vertically. I have a fixed height form that I'm working with. When the datagridview...
3
by: steve | last post by:
Hi All How can I get the datagridview to redraw after changing the rowtemplate.height at runtime ( it is databound to a datatable) I have tried datagridview1.refresh etc to no avail (The row...
3
by: Daniel Manes | last post by:
I need a strategy to debug this situation... I can't put all the code involved, but here are some of the critical lines with comments: ------------------------- Private _parentDataCell As...
0
by: Michael Howes | last post by:
I added a new user control I went in and changed the control to inherit from DataGridView I want my new DataGridView to have a fixed number of Rows and Columns so I have a method I call in my...
4
by: Vidhura | last post by:
This article explains how to make all the rows height the same in DataGridView in .Net 2.0 while using AutoSizeRowMode In DataGridView 2.0,there is a option to resize row to fit the content of...
0
by: Steve Richter | last post by:
I cant get a contextmenu to popup in the context of a datagridview. It pops up in the ListBox, and in the form itself. But not the DataGridView. How could that be? here is my code: using...
1
by: Jeff | last post by:
Hey ..NET 2.0 I've created a User Control which contain a DataGridView. This User Control is displayed on a TabPage. This TabPage is added to the TabControl during runtime. The problem is...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.