Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2006, 03:31 AM
Authorized User
 
Join Date: Nov 2005
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
 
Old December 19th, 2006, 06:55 AM
Friend of Wrox
 
Join Date: Aug 2006
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......





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 06:25 PM
Grid Bind msbsam ASP.NET 2.0 Basics 1 December 19th, 2006 07:03 AM
Grid bind using Button msbsam ASP.NET 2.0 Basics 0 December 15th, 2006 05: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 11:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.