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

Datagrid Return the 1st row Only

Hi All,

I have a ASP.Net application written in C# with the use of Visual Studio
2003. When I develop and test the application in my company using ASP.Net
Framework 1.4.33.2 in Windows XP Enterprise Standard Edition and Windows XP
Professional, the datagrid control can return all records. When I deploy all
the files to the client and run it, the datagrid returns the 1st row of the
whole recordset.

I tried different methods to solve the problem and finally found that if I
decrease the number of columns in the datagrid, the result can be displayed
normally. The problem datagrid contains about 25 -30 columns. It works when
I drease the # of columns to about 10.

I suspect that there is a limited size for each .Net page to display. Is
there anyone know how to solve the problem?
Black
Nov 17 '05 #1
3 1345
Hi Black,

You mentioned you developed an ASP.NET application, so I suppose it's a Web
application. However, you also said you deploy all
the files to the client and run it. It's very confused. I don't understand
why do you need to deploy any file for a Web application? Or it's a windows
(desktop) application?

Elton Wang
el********@hotmail.com
"Hoodworld" <ho*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All,

I have a ASP.Net application written in C# with the use of Visual Studio
2003. When I develop and test the application in my company using ASP.Net
Framework 1.4.33.2 in Windows XP Enterprise Standard Edition and Windows XP Professional, the datagrid control can return all records. When I deploy all the files to the client and run it, the datagrid returns the 1st row of the whole recordset.

I tried different methods to solve the problem and finally found that if I
decrease the number of columns in the datagrid, the result can be displayed normally. The problem datagrid contains about 25 -30 columns. It works when I drease the # of columns to about 10.

I suspect that there is a limited size for each .Net page to display. Is
there anyone know how to solve the problem?
Black

Nov 17 '05 #2
Hi Wang,

Sorry for confusing you.

It's a web application written in C#.
My "Deploy" means transfering the web application files to the client's
server.

I try the install the application in different platforms including Windows
2003 Standard Edition and Windows 2003 SBS in our client and both platforms
has the datagrid problem.
"Elton Wang" <el********@hotmail.com> wrote in message
news:e0**************@TK2MSFTNGP15.phx.gbl...
Hi Black,

You mentioned you developed an ASP.NET application, so I suppose it's a Web application. However, you also said you deploy all
the files to the client and run it. It's very confused. I don't understand
why do you need to deploy any file for a Web application? Or it's a windows (desktop) application?

Elton Wang
el********@hotmail.com
"Hoodworld" <ho*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All,

I have a ASP.Net application written in C# with the use of Visual Studio
2003. When I develop and test the application in my company using ASP.Net Framework 1.4.33.2 in Windows XP Enterprise Standard Edition and Windows

XP
Professional, the datagrid control can return all records. When I deploy

all
the files to the client and run it, the datagrid returns the 1st row of

the
whole recordset.

I tried different methods to solve the problem and finally found that if I decrease the number of columns in the datagrid, the result can be

displayed
normally. The problem datagrid contains about 25 -30 columns. It works

when
I drease the # of columns to about 10.

I suspect that there is a limited size for each .Net page to display. Is
there anyone know how to solve the problem?
Black


Nov 17 '05 #3
I found the answer.

It's because the stored proc is not updated yet. There may be some mismatch
in datagrid's fields.

--
Kenneth Ho
IT Department Ltd.
Tel: 3105 3137 / 3105 3138
Fax: 2851 2111
mailto:ke*****@itdept.com.hk
"Hoodworld" <ho*******@hotmail.com> ¼¶¼g©ó¶l¥ó·s»D
:e$**************@TK2MSFTNGP12.phx.gbl...
Hi Wang,

Sorry for confusing you.

It's a web application written in C#.
My "Deploy" means transfering the web application files to the client's
server.

I try the install the application in different platforms including Windows
2003 Standard Edition and Windows 2003 SBS in our client and both platforms has the datagrid problem.
"Elton Wang" <el********@hotmail.com> wrote in message
news:e0**************@TK2MSFTNGP15.phx.gbl...
Hi Black,

You mentioned you developed an ASP.NET application, so I suppose it's a Web
application. However, you also said you deploy all
the files to the client and run it. It's very confused. I don't understand
why do you need to deploy any file for a Web application? Or it's a

windows
(desktop) application?

Elton Wang
el********@hotmail.com
"Hoodworld" <ho*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All,

I have a ASP.Net application written in C# with the use of Visual Studio 2003. When I develop and test the application in my company using ASP.Net Framework 1.4.33.2 in Windows XP Enterprise Standard Edition and Windows XP
Professional, the datagrid control can return all records. When I
deploy
all
the files to the client and run it, the datagrid returns the 1st row
of the
whole recordset.

I tried different methods to solve the problem and finally found that

if I decrease the number of columns in the datagrid, the result can be

displayed
normally. The problem datagrid contains about 25 -30 columns. It works

when
I drease the # of columns to about 10.

I suspect that there is a limited size for each .Net page to display.

Is there anyone know how to solve the problem?
Black



Nov 17 '05 #4

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

Similar topics

2
by: SammyBar | last post by:
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx....
3
by: PeterZ | last post by:
G'day, After doing much searching and pinching bits of ideas from here there and everywhere I came up with a fairly 'clean' solution of including a comboBox into a dataGrid column. You can...
2
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know...
0
by: Mauro | last post by:
Hi, I need a big help to resolve this problem. I need to put a usercontrol in a datagrid: this control check if the code inserted is present in a archive and if not return a error message. (In...
1
by: Rick | last post by:
Hello all, I hope all is well with you. I am having a seriously difficult time with this problem. Allow me to set up the problem. I have a System.Web.UI.Page with the following controls...
4
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a...
6
by: Agnes | last post by:
I understand it is impossible, but still curious to know "Can I freeze several column in the datagrid, the user can only scroll the first 3 columns (not verical), for the rest of the coulumn, it is...
4
by: Jan Nielsen | last post by:
Hi all I'm a former Access developer who would like to implement a many-to-many relation in about the same way you do in Access: With a subform and a combo box. Is it possible to use a...
6
by: p.mc | last post by:
Hi all, I'm having major problems with a userControl which contains a datagrid. My problem concerns data binding. The Page_Load() procedure calls the DataBind procedure to bind the datagrid...
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
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
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,...
1
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.