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

Windows Forms datagrid won't show more than 255 rows.

Hi,

I'm filling a datagrid from a dataset but only the first 255 rows in the
dataset show up in the grid. Is there a 255 row limit on the datagrid?
I've searched the properties but can't find anything that would limit it to
255. Is paging the only workaround? Thanks! Ken.
Nov 20 '05 #1
7 1724
Hi Ken,

I tried this.
\\\
Dim dt As New DataTable
Dim dc As New DataColumn
dt.Columns.Add(dc)
For i As Integer = 0 To 300
dt.Rows.Add(dt.NewRow)
dt.Rows(i)(0) = i.ToString
Next
DataGrid1.DataSource = dt
//
That gives a datagrid with 301 rows from 0 to 300.

I hope this helps anyway,

Cor
Nov 20 '05 #2
Are you sure that your bound source has more than 255 rows in it ?

OHM
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Ken,

I tried this.
\\\
Dim dt As New DataTable
Dim dc As New DataColumn
dt.Columns.Add(dc)
For i As Integer = 0 To 300
dt.Rows.Add(dt.NewRow)
dt.Rows(i)(0) = i.ToString
Next
DataGrid1.DataSource = dt
//
That gives a datagrid with 301 rows from 0 to 300.

I hope this helps anyway,

Cor

Nov 20 '05 #3
Are you sure that your bound source has more than 255 rows in it ?

OHM
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Ken,

I tried this.
\\\
Dim dt As New DataTable
Dim dc As New DataColumn
dt.Columns.Add(dc)
For i As Integer = 0 To 300
dt.Rows.Add(dt.NewRow)
dt.Rows(i)(0) = i.ToString
Next
DataGrid1.DataSource = dt
//
That gives a datagrid with 301 rows from 0 to 300.

I hope this helps anyway,

Cor

Nov 20 '05 #4
Hi OHM,

Good to see you, Armin is also active again.

I am not that greath datagrid expert, however when he is always away, step
by step I become that give me a hint?

Cor
Nov 20 '05 #5
Hi OHM,

Good to see you, Armin is also active again.

I am not that greath datagrid expert, however when he is always away, step
by step I become that give me a hint?

Cor
Nov 20 '05 #6
* "Ken Dopierala Jr." <kd*********@wi.rr.com> scripsit:
I'm filling a datagrid from a dataset but only the first 255 rows in the
dataset show up in the grid. Is there a 255 row limit on the datagrid?
I've searched the properties but can't find anything that would limit it to
255. Is paging the only workaround?


"Post code!"

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #7
* "Ken Dopierala Jr." <kd*********@wi.rr.com> scripsit:
I'm filling a datagrid from a dataset but only the first 255 rows in the
dataset show up in the grid. Is there a 255 row limit on the datagrid?
I've searched the properties but can't find anything that would limit it to
255. Is paging the only workaround?


"Post code!"

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

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

Similar topics

15
by: Wiktor Zychla | last post by:
today we've found a critical issue regarding the ListView from Windows.Forms. it was confirmed on several machines with Win2K and XP. here's the problem: create a ListView with about 50000 rows....
3
by: Diego TERCERO | last post by:
Hi... I'm working on a tool for editing text resources for a family of software product my company produces. These text resources are found in a SQL Server database, in a table called...
1
by: Dominik Luyten | last post by:
Hi, I would like to format certain DataRows in a Windows.Forms.DataGrid. I know how to do that for the columns, but I cannot find a way to assign a specific font, color etc. to a specific kind...
4
by: waltborders | last post by:
Hi, Because the blind are unable to use a mouse, keyboard navigation is key. A major difficulty is that not all windows forms controls are keyboard 'tab-able' or 'arrow-able' or have "tab...
5
by: Sanddevil | last post by:
Hi there - I hope someone out there can help me! I'm using a .Net DataGrid Class to show the results of a SQL query in a spreadsheet type control. The code, which works fine is: iRowCount =...
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...
1
by: Ken Dopierala Jr. | last post by:
Hi, I'm filling a datagrid from a dataset but only the first 255 rows in the dataset show up in the grid. Is there a 255 row limit on the datagrid? I've searched the properties but can't find...
7
by: Dave | last post by:
Are there any add-on products or samples available that can do the following in an vb.net datagrid I want to compare 2 rows in a datagrid - one row from one database and another row for another...
10
by: Aaron Smith | last post by:
If I have a datagrid and the bound data file only have 4 rows in it, the grid will show the 4 rows. However, there is blank space below that until it reaches the bottom of the grid. Is there a way...
6
by: shil | last post by:
Hi, I am writing a windows app in .net 2003. I have a datagrid which gets data from a storedprocedure. My question is how can I update the data in the datagrid? I want to call another...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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
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,...
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...

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.