473,387 Members | 1,579 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,387 software developers and data experts.

Datagrid column sizing

DC
Hi all,
is there any short way to accomplish column "auto"-sizing in a Datagrid?
(Something like double-clicking column header separator)

I suppose datagrid object calls some kind of "internal" method to do it when
column header separator is clicked, but I can't figure out which it is.

TIA
Nov 21 '05 #1
2 1085
You can find some useful info about Datagrid on my msdevelopers blog

http://msdevelopers.blogspot.com/
Fernando Hunth
3DCE Microsoft Certified Developer
Senior Developer
Huddle Group S.A.
fe******@huddle.com.ar

Huddle Group S.A. | Enterprise Technology Services
Microsoft Certified Partner

Ciudad de Buenos Aires · Argentina
www.huddle.com.ar



"DC" wrote:
Hi all,
is there any short way to accomplish column "auto"-sizing in a Datagrid?
(Something like double-clicking column header separator)

I suppose datagrid object calls some kind of "internal" method to do it when
column header separator is clicked, but I can't figure out which it is.

TIA

Nov 21 '05 #2
Hi,

http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q877q

Ken
----------------
"DC" <DC@discussions.microsoft.com> wrote in message
news:D9**********************************@microsof t.com...
Hi all,
is there any short way to accomplish column "auto"-sizing in a Datagrid?
(Something like double-clicking column header separator)

I suppose datagrid object calls some kind of "internal" method to do it when
column header separator is clicked, but I can't figure out which it is.

TIA
Nov 21 '05 #3

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

Similar topics

3
by: PeterZ | last post by:
Hi, In a running C# app with a datagrid control I select all rows in the dataGrid using CTRL-A, I then paste into some other app like notepad or Word but the column headings get left off. Is...
2
by: Tim Wallace | last post by:
I'm using Visual Studio 2003. Is there a way one can cause columns in a DataGrid to autosize? Also, is there a way to cause the last column to take up the remaining space between the end of the...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
3
by: flast | last post by:
I have a datagrid with 4 columns, how can I set the width of any particular column at either design or run time? I'm tired of constantly having to manually re-size a particular column every time I...
3
by: Brian Mitchell | last post by:
I hate to ask this question because I'm sure it's been asked before, but how do you automatically resize the columns in a datagrid when the form is resized? Thanks!!
3
by: Helen Trim | last post by:
How can I set the sizes of columns in a datagrid? Thanks in advance Helen
4
by: Anthony | last post by:
Hi Folks, I'm adding some columns to my datagrid which are of Combo Box type. I'm inheriting DataGridTextBoxColumn and doing all the usual stuff to get them populated. This is working fine. I...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
1
by: jmprescott | last post by:
I have a stupid easy question (I hope). I have a paging DataGrid, and I'm trying to keep the row height the same throughout all the pages. I tried setting the height for the rows, which seemed to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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,...

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.