473,508 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fill ASPxGrid

1 New Member
Hi!

I'm using the ASPxGrid component and I have a problem with it.
I'm writing a simple web application. I would like to fill the ASPxGrid with
some records from the database when a button is pressed. I write this code
to On_Click event (the event executes):

DataSet ds = new DataSet();
OleDbConnection mycn = new OleDbConnection(ConnString);
OleDbDataAdapter myda = new OleDbDataAdapter("select * from functions",mycn);
myda.Fill (ds,"Functions");
ASPxGrid1.DataSource =ds.Tables[0] ;
ASPxGrid1.DataBind();

The point is, that the records arn't loaded.

If I post the same code into the Page_Load function, everything works fine, but I would like
to fill the ASPxGrid on BottonClick...

Can you help me in some way?

Thanks...
Sep 8 '06 #1
0 1436

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2081
by: James Wansley | last post by:
I am using C# for codebehind and ASP.Net for page code. I am using a databound ASPxGrid on a page that is databound in the codebehind. I have a single LinkButton on this page. When I click this...
2
1262
by: ad | last post by:
I have a employee table, with a filed sexID The field store 1 for male and 2 for female. I want to display this field in a ASPxGrid with male or female , not 1 or 2. How can I do that?
6
10955
by: M | last post by:
Hi, Does SqlDataAdapter always close the connection (assuming connection was closed before calling Fill()), even if an exception occurs while calling Fill()? Example: try {...
30
3272
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None,...
12
2066
by: Raymond Hettinger | last post by:
I am evaluating a request for an alternate version of itertools.izip() that has a None fill-in feature like the built-in map function: >>> map(None, 'abc', '12345') # demonstrate map's None...
0
1184
by: soft4raju | last post by:
How can i import devexpress.aspxgrid.dll file in to my web application. deveexpress.aspxgrid.dll file is a third party tool. cheers, raju
0
942
by: Bruce One | last post by:
Does anyone use AspxGrid from DevExpress ? Iam considering buying it, but I would like to know the real benefits over the conventional GridView that comes with VS2005...
0
1814
by: Bruce One | last post by:
There comes a time when we have to take that final decision: What to choose for the best webgrid, I have tested a bunch of grids (free and charged ones) and I have come to these: DevExpress...
0
1062
by: akle | last post by:
hello... Let me explain my problem by giving an example. I have lots of users and their profiles having personal picture in it. If someone makes a search lets say s/he is searching for...
0
7132
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
7336
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
7401
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
7504
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
3211
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
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.