473,699 Members | 2,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

datagird auto-fit

Hi,
can anyone point me to a link whith a sample on how to auto fit the
datagrid?

i need to
1: each row should occupy as much space as needed, the last row should
fill the remaining space (or the remaining space should be equally
distributed among all colunns).
2: if grid width does not fit summ of actual column widths send add
scrollbar.
3: use columnhaeder width if larger than data width.

Is there some code around that implements it. ?

Thanks
Alex

Nov 20 '05 #1
3 1124
Check out following item on the Syncfusion FAQ:
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q877q

--
Greetz

Jan Tielens
_______________ _______________ __
Read my weblog: http://weblogs.asp.net/jan
"alex" <ai******@hotma il.com> wrote in message
news:#O******** ******@TK2MSFTN GP11.phx.gbl...
Hi,
can anyone point me to a link whith a sample on how to auto fit the
datagrid?

i need to
1: each row should occupy as much space as needed, the last row should
fill the remaining space (or the remaining space should be equally
distributed among all colunns).
2: if grid width does not fit summ of actual column widths send add
scrollbar.
3: use columnhaeder width if larger than data width.

Is there some code around that implements it. ?

Thanks
Alex

Nov 20 '05 #2
Thanks
i looked at these already, but it does not include the headers

Alex

Jan Tielens wrote:
Check out following item on the Syncfusion FAQ:
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q877q

--
Greetz

Jan Tielens
_______________ _______________ __
Read my weblog: http://weblogs.asp.net/jan
"alex" <ai******@hotma il.com> wrote in message
news:#O******** ******@TK2MSFTN GP11.phx.gbl...
Hi,
can anyone point me to a link whith a sample on how to auto fit the
datagrid?

i need to
1: each row should occupy as much space as needed, the last row should
fill the remaining space (or the remaining space should be equally
distributed among all colunns).
2: if grid width does not fit summ of actual column widths send add
scrollbar.
3: use columnhaeder width if larger than data width.

Is there some code around that implements it. ?

Thanks
Alex



Nov 20 '05 #3
* alex <ai******@hotma il.com> scripsit:
can anyone point me to a link whith a sample on how to auto fit the
datagrid?


<http://www.syncfusion. com/faq/winforms/search/1004.asp>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

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

Similar topics

2
2602
by: Manlio Perillo | last post by:
Hi. This post follows "does python have useless destructors". I'm not an expert, so I hope what I will write is meaningfull and clear. Actually in Python there is no possibility to write code that follows C++ RAII pattern. Of course Python objects are not statics like in C++, but in C++ the auto_ptr class is used for enforcing this pattern for dynamical
1
2188
by: Petr Studenovsky | last post by:
Hello I made small GUI test program in Visual Basic NET for SQL communication. I need some help with these problems. problem 1) If I change some settings in datagrid from properties window (e.g. background color). my datatest is removed. I compared it with diff program and it reorganized all source code.
1
13956
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the page the way I want. Does anybody know a solution for this? First of all, the code I am using: CSS ------- body {
0
1235
by: Freddy | last post by:
I have 2 tables in a dataset. One of them is child to the other. In my dataset, I specify both default views to allowdelete = false My datasource table of the datagird is the master table and I allow navigation in my datagrid. In the master table, I cannot delete rows witch is good
20
2860
by: Vijay Kumar R. Zanvar | last post by:
Hello, Unlike register, auto keyword can not be used to declare formal parameter(s). Is there any specific reason for this? Kind regards, Vijay Kumar R. Zanvar
0
998
by: timon | last post by:
I have create a Datagird in the window form. How can I set the column name in the datagird?
6
5066
by: Alpha | last post by:
I retrieve a table with only 2 columns. One is a auto-generated primary key column and the 2nd is a string. When I add a new row to the dataset to be updated back to the database. What should I do with the 1st column ? (Below I have a "1" in place for now). Also, Does the datase.AcceptChanges(); updates the changes to the database? Which command do I use to update the changes in dataset back to the Access database table? Thanks, Alpha...
2
1464
by: Gaurav Gargate | last post by:
To Group, I am creating a datagrid in an ASP.NET project (C#) at the design time. I will be adding the columns to the datagird at run time. The number of columns, name of the columns, data in the rows etc. will all be decided on the run time. I am using the simple grid.Columns.Add(BoundColumn).... method. BUT I am not able to sort these columns even if the AllowSorting property has been set to true.
5
5041
by: Samuel | last post by:
Hi, I am running into a problem of mixing UICulture = auto and allowing users to select culture using a dropdown list. I am detecting a querystring, "setlang", and when found, setting the CurrentUICulture to what's specified in the querystring. Since I want to allow UICulture auto detecting, I add UICulture = "auto" to page directive on each page.
1
1061
by: Kiran | last post by:
Hi, Does any one know how to add a button to every row of a windows form datagird. Can anyone provide me some code on this. I have searched a lot but couldn't find any. I am posting this for the second time. Any help would be appreciated
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8880
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.