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

datasource..record count

Hi
can i get record count from datasource??

let say my query..
----------------------------------------------------------------------------------------
string mySelectQueryw = "select * from tbluser";
MySqlConnection myConnectionw = new MySqlConnection(myConnString);
MySqlDataAdapter myrecordw = new
MySqlDataAdapter(mySelectQueryw,myConnectionw);
myConnectionw.Open();
DataSet dsw = new DataSet();

dsw.Tables.Add("tbluser1");
----------------------------------------------------------------------------------------

--
:: KHAMAL ::
Nov 19 '05 #1
1 2222
dsw.Tables["tbluser1"].Rows.Count will give you the row count after you have
filled the data table.

"Khamal" <so*****@yahoo.com> wrote in message
news:87**********************************@microsof t.com...
Hi
can i get record count from datasource??

let say my query..
----------------------------------------------------------------------------------------
string mySelectQueryw = "select * from tbluser";
MySqlConnection myConnectionw = new MySqlConnection(myConnString);
MySqlDataAdapter myrecordw = new
MySqlDataAdapter(mySelectQueryw,myConnectionw);
myConnectionw.Open();
DataSet dsw = new DataSet();

dsw.Tables.Add("tbluser1");
----------------------------------------------------------------------------------------

--
:: KHAMAL ::
Nov 19 '05 #2

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

Similar topics

13
by: DraguVaso | last post by:
Hi, I need a function that gives me the number of Columns shown in a DataGrid. So I don't need to know the number of columns shown in tha DataSource, because this number can be completely...
1
by: Zoury | last post by:
Hi there! :O) I have a WebService that contains the following struct definition. this struct is defined right after the WebService class, ie : //*** namespace mynamespace { public class...
7
by: bernadou | last post by:
How do I (or is this even possible) get the total number of records from a datasource control in ASP.NET 2.0? I’ve messed around with getting the row count from the grid that the datasource is...
3
by: Richard Ryerson | last post by:
I have a general DataGridComboBoxColumn that I built using the Example in the .NET 2003 Combined Collection help file (that was a data time picker). I am able to assign a data source and display...
0
by: fig000 | last post by:
Hi, I'm trying to use the sqldatasource control and a detailsview to create a fully functional data entry screen; it's quite easy. I can see the strength of creating a master grid associated...
0
by: Curious Trigger | last post by:
Hi NG, in my asp.net page a DetailView-Control is bound to a DataSource-Control with select, insert, update and delete-commands configured. As long as I type valid data into the DetailView all...
2
by: nospam | last post by:
I have code that is working in one place but not another. In one spot, you click a button to open an XML file and have it read into a dataset. I then set the datasource of my datagrid to the...
1
by: Greg Smith | last post by:
I would like to display the filtered record count for a datasource used to populate a gridview. I would like to change it every time the filter is changed. Is there a way to do this? Any...
3
by: James R. Davis | last post by:
I am an absolute beginner and finding myself confused at every step that I take in the learning process. It will get better. Anyway, I have a SqlDataSource control on a form and at page load...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
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:
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...

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.