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

How to get the number of rows of a datagrid?

AA
Do any one know how to get the number of rows instead of the visbleRowCount
of a datagrid?

Thanks in advance!

Richard
Nov 20 '05 #1
2 16818
AA
Solved.

[C#]
int numRows = dataGridDetails.BindingContext[dataGridDetails.DataSource,
dataGridDetails.DataMember].Count;

[VB.NET]
Dim numRows as Integer = i
dataGridDetails.BindingContext(dataGridDetails.Dat aSource,
dataGridDetails.DataMember).Count;

Quoted from http://www.syncfusion.com/FAQ/WinFor....asp?print=858


"AA" <AA@hotmail.com> wrote in message
news:eL**************@tk2msftngp13.phx.gbl...
Do any one know how to get the number of rows instead of the visbleRowCount of a datagrid?

Thanks in advance!

Richard

Nov 20 '05 #2
or dataGridDetails.VisibleRowCount
"AA" <AA@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Solved.

[C#]
int numRows = dataGridDetails.BindingContext[dataGridDetails.DataSource,
dataGridDetails.DataMember].Count;

[VB.NET]
Dim numRows as Integer = i
dataGridDetails.BindingContext(dataGridDetails.Dat aSource,
dataGridDetails.DataMember).Count;

Quoted from http://www.syncfusion.com/FAQ/WinFor....asp?print=858


"AA" <AA@hotmail.com> wrote in message
news:eL**************@tk2msftngp13.phx.gbl...
Do any one know how to get the number of rows instead of the

visbleRowCount
of a datagrid?

Thanks in advance!

Richard


Nov 20 '05 #3

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

Similar topics

0
by: Alpha | last post by:
I'm working on a Window based application. I have 2 textboxes and a datagrid on a form. The textboxes are databind to the same datasource as datagrid. I want to use the following to update the...
4
by: Tim T | last post by:
Hi, I have a stored procedure executing a search and an asp.net page displaying the results in a datagrid. The datagrid has paging on it, I am using Visual Studio.NET and can't see any option...
0
by: John Shum | last post by:
I prepare a UserControl that act as a lookup control, once the code is enter in the TextBox, the description will appear in another TextBox outside the UserControl of the same row in a DataGrid via...
3
by: Curtis | last post by:
Is there a way to find out the number of rows in a datagrid without accessing the original datatable or dataset on which the recordsource is based? x = datagrid1.rows.count would be cool, but...
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...
4
by: Melson | last post by:
Hi I've a problem. Can anyone help. I would like to use datagrid for data entry. How can I set the number of rows in the datagrid. And use the datagrid to update the ms sql table. regards...
2
by: patang | last post by:
I found the following to count the total number of VISIBLE rows of datagrid datagrid.visiblerowcount How do we count the total number of ACTUAL (not just visible) rows of datagrid? Thanks...
3
by: Gerhard | last post by:
I would like a DataGrid I am using to show a default number of rows (10) with the heading, even if the dataset it is bound to returns less than that number of rows (0-9). It is a databound grid...
1
by: Mike | last post by:
Hi, Which property or method returns the number of rows in a DataGrid? Thanks -- Regads, Rochdi
2
by: Lars Netzel | last post by:
Hi I need to have a limitation for the number of rows one can add in a datagrid (bound from a DataTable), in this case maximum should be 10 rows. My approach I guess is to catch the rownumber...
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: 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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.