Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 19th, 2006, 02:31 AM
Authorized User
 
Join Date: Nov 2005
Location: Colombo, , Sri Lanka.
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help to bind grid view

Hi all,
i need to bind my gridview using command button onclik event.
Can u help me
__________________
MSB
  #2 (permalink)  
Old December 19th, 2006, 05:55 AM
Friend of Wrox
 
Join Date: Aug 2006
Location: Bangalore, Karnataka, India.
Posts: 231
Thanks: 0
Thanked 1 Time in 1 Post
Default

take a data set into your function and by query assign the values of your query to dataset
then bind the grid as follows:
//gridname:GridView1
datasetname: Dataset1
GridView1.DataSource = DataSet1;
GridView1.dataBind();

whatever ur source is gridview used these two lines to bind

thanks......
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Grid View Drop Down List, view all jskinner123 ASP.NET 2.0 Basics 0 November 25th, 2007 05:25 PM
Grid Bind msbsam ASP.NET 2.0 Basics 1 December 19th, 2006 06:03 AM
Grid bind using Button msbsam ASP.NET 2.0 Basics 0 December 15th, 2006 04:20 AM
Bind grid using AJAX chandan_tandon Crystal Reports 0 July 6th, 2006 08:44 AM
Bind a grid from multi tables? hany ASP.NET 1.0 and 1.1 Professional 2 January 22nd, 2006 10:26 AM



All times are GMT -4. The time now is 06:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.