473,398 Members | 2,403 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,398 software developers and data experts.

DataGrid Column/Row Expansion or Defaults

How do I make my columns/rows longer on a FORM by default?

My 'File Path' is 30 characters, and my 'Rpt Date' is 12; both
datarows appear with a fixed length of say 6.
I can double click on a column to show all the hidden text, but there
has to be an easier way..
Related would be like in Excel where you can expand all columns to fit
the number of characters, is there code to do this here? Below are two
of my declarations. I am not sure if there are properties of
DataTable, DataRow, or DataGrid that can be modified to accomplish
this, or if we are stuck with the default appearance length.

dr("File Path") = strFilePath
dr("Rpt Date") = dtTemp

Let me know if you need more info. Thanks!

Mar 15 '07 #1
0 863

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

Similar topics

1
by: Will | last post by:
Hi all, I need to know how to manually set the header name of a column in a datagrid. Everytime i retieve records from a database, the coloum header of the datagrid defaults to the column...
1
by: Will | last post by:
In a Windows form: I need the code to manually set the header name of a column in a datagrid to anything i want. Everytime i retieve records from a database, the coloum header of the datagrid...
7
by: _e_ | last post by:
I'm trying to set custom widths and headings for DataGrid columns, but they keep displaying as defaults. I did configure the params via the TableStyles collection -> ColumnStyles collection. ...
3
by: JC | last post by:
I am using the datagrid with late binding to an xml file. I set the column width and MappingName in code and set the TableStyles collection with the same info at design time. However it always...
3
by: Brad | last post by:
I'm working with a DataGrid in C#, and the user needs to be able add and remove columns from the DataGrid on the fly, without opening and closing the form. The scenario is this. I have a setup...
4
by: skOOb33 | last post by:
I successfully autosized the columns and rows on my Datagrid, and am now facing another issue. Having the sorting ability by clicking the column headers is key, but when I do that, it resizes all...
0
by: Mike Gorgone | last post by:
Hi All, I'm currently trying to show a datagrid with a parent and child table realtionship. I've got the expansion icon (+) in the row headers and when I click on it I see the link to the child...
0
by: schaapiee | last post by:
How do I make my columns/rows longer on a FORM by default? My 'File Path' is 30 characters, and my 'Rpt Date' is 12; both datarows appear with a fixed length of say 6. I can double click on a...
3
by: Soulless | last post by:
Hi, I am very new to C# and am trying to figure out DataGrids. I have a DataGrid whos data member (I think that is what it is called) has a checkbox on it. The checkbox defaults to a check that...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.