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

Urgent Plzzz

1
This is the code i am using now.But i want to autosize the grid size according to the datasize..Anyone plz help...

DataGridTableStyle tabstyle=new DataGridTableStyle();
tabstyle.MappingName=bytegrid.DataMember;
bytegrid.TableStyles.Add(tabstyle);
bytegrid.TableStyles[i].AllowSorting=sorting;
bytegrid.TableStyles[i].RowHeadersVisible=false;
bytegrid.TableStyles[i].ColumnHeadersVisible=true;
bytegrid.TableStyles[i].GridColumnStyles[0].Width=130;
tabstyle.DataGrid.Refresh();
bytegrid.TableStyles[i].GridColumnStyles[1].Width=20;
tabstyle.DataGrid.Refresh();
bytegrid.TableStyles[i].GridColumnStyles[2].Width=20;
tabstyle.DataGrid.Refresh();
bytegrid.TableStyles[i].GridColumnStyles[3].Width=20;
tabstyle.DataGrid.Refresh();
bytegrid.TableStyles[i].GridColumnStyles[4].Width=20;
tabstyle.DataGrid.Refresh();
Feb 19 '08 #1
0 700

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: sreenu k via DotNetMonster.com | last post by:
i have one windows application.(accessing files one machine to another machine) and also having one shared folder in my machine and one shared folder in others machine. so, my task is how to...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
1
by: anadiks | last post by:
plzzz if any 1 give me d solution for the following problem, i'll be really greatful to him/her. Problem 1: Optimization A C++ class has the following member: int status_; ...
1
by: sohail28 | last post by:
Respected Sir, I try to connect my DB which is present in my hosting server control panel using Dreamweaver MX 2004. Everything is going fine, except while testing connection configuration, its...
6
by: salo | last post by:
can anyone plzzz help out to write code in c# that i have kept one radio button and one textboxes and one label button .....once the radiobutton is clicked the textbox and label should get...
6
by: tanya2001 | last post by:
hi all can somebody plzz tell me how to transfer data from excel 2003 to sql server 2000 using webforms. I have a table in excel and i want to transfer the entire data into sqlserver table...how...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
4
by: bsonline | last post by:
I hv a datetime format like '24/01/2008 15:56:01' . Now I have to select dates from a date range, but input datetime format like 24/1/2008 15:56:01'. I hv written the query like : "select...
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
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
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
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,...
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.