473,385 Members | 2,274 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.

Data Grid Paging doesn't work

Hi could some one help me, I have a datagrid displaying some info I set the
property "AllowSorting=true" but it doesn't work.
private void Page_Load(object sender, System.EventArgs e)
{

Response.Cache.SetCacheability(System.Web.HttpCach eability.NoCache);
if ((Page.IsPostBack))
{
SqlConnection sConn = new SqlConnection();
sConn = new SqlConnection
(System.Configuration.ConfigurationSettings.AppSet tings["sConn"].ToString());
DataSet ds = new DataSet();
String sText = "SELECT EMPLOYEE_NUMBER,FULL_NAME, LOCATION FROM TLVSETXEMD
WHERE FULL_NAME LIKE '"+ TxtName.Text +"%'";
SqlDataAdapter cmd = new SqlDataAdapter(sText, sConn);
cmd.Fill(ds,"Published");
DGEmployee.DataSource= ds.Tables["Published"].DefaultView;
this.DataBind();
}
}
Jul 21 '05 #1
0 841

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

Similar topics

9
by: VMI | last post by:
We have this huge application that's based on storing tons of data on a dataTable. The only problem we're having is that storing LOTS of data (1 million records) into a datatable will slow down the...
1
by: Andrew Banks | last post by:
I've added a data grid to my page but the automatic paging feature doesn't seem to be working. The code I have on page load is as follows. Can anyone suggest why this isn't working? ...
3
by: Andrew Banks | last post by:
I've added a data grid to my page but the automatic paging feature doesn't seem to be working. The code I have on page load is as follows. Can anyone suggest why this isn't working? ...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
3
by: Scottie_do | last post by:
I have a 20meg in-memory stack-based array and I'd like to normalise in the client's memory... then add foriegn keys, and display results on a datagrid. I discovered that converting the stack to a...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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.