User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 427,366 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,005 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 16458 | Replies: 2
Reply
Join Date: Aug 2004
Posts: 3
Reputation: afzalhassen is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
afzalhassen afzalhassen is offline Offline
Newbie Poster

binding a datagrid to a datareader

  #1  
Aug 29th, 2004
Hi,

i'm trying to make use of sqldataconnections/commands&readers to populate
a datagrid..the msdn collection lib. hasnt been much help at all in this regard

In addition to binding to the datagrid, i also want to be able to make use of the datagrids ability to update the data to which it is bound by editing the data in the grid, i need to accomlish this through the use of a datareader as well..
any help in this regard will be much appreciated...

thanx alot in advance...

Afzal Hassen
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 15
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: binding a datagrid to a datareader

  #2  
Sep 3rd, 2004
DataGrid1.DataSource = yourdatareader;
DataGrid1.DataBind();
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: Oct 2004
Posts: 1
Reputation: Billy_K is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Billy_K Billy_K is offline Offline
Newbie Poster

Re: binding a datagrid to a datareader

  #3  
Oct 4th, 2004
A datareader is a read-only object. If you need to edit and update changes you need to use a dataset
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 3:46 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC