473,698 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

filling dataset from data displayed on Gridview

Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..sim ilarly is the reverse of this
mechanism possible ?i.e. means get the displayed data from datagrid and
fill another dataset with these data....Plz help in solving this
problem....

Thanks
Pintu

Dec 5 '06 #1
4 1617
Pintu,

Datagrid exposes its content via the Items collection. There is nothing
stopping you from looping through the items (rows) and doing whatever you
want with the cell content including building a new dataset.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"pintu" <pr************ **@gmail.comwro te in message
news:11******** *************@1 6g2000cwy.googl egroups.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..sim ilarly is the reverse of this
mechanism possible ?i.e. means get the displayed data from datagrid and
fill another dataset with these data....Plz help in solving this
problem....

Thanks
Pintu
Dec 5 '06 #2
Hi Goldin..
Thanks for the hints provided, but i am unable to find the items
collection of gridview.where as in elder version of .net i was able to
find the items collection of datagrid...So plz reply with some code if
possible..thank s again ..
Eliyahu Goldin wrote:
Pintu,

Datagrid exposes its content via the Items collection. There is nothing
stopping you from looping through the items (rows) and doing whatever you
want with the cell content including building a new dataset.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"pintu" <pr************ **@gmail.comwro te in message
news:11******** *************@1 6g2000cwy.googl egroups.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..sim ilarly is the reverse of this
mechanism possible ?i.e. means get the displayed data from datagrid and
fill another dataset with these data....Plz help in solving this
problem....

Thanks
Pintu
Dec 5 '06 #3
For GridView it is called Rows.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"pintu" <pr************ **@gmail.comwro te in message
news:11******** **************@ 79g2000cws.goog legroups.com...
Hi Goldin..
Thanks for the hints provided, but i am unable to find the items
collection of gridview.where as in elder version of .net i was able to
find the items collection of datagrid...So plz reply with some code if
possible..thank s again ..
Eliyahu Goldin wrote:
Pintu,

Datagrid exposes its content via the Items collection. There is nothing
stopping you from looping through the items (rows) and doing whatever you
want with the cell content including building a new dataset.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"pintu" <pr************ **@gmail.comwro te in message
news:11******** *************@1 6g2000cwy.googl egroups.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..sim ilarly is the reverse of this
mechanism possible ?i.e. means get the displayed data from datagrid and
fill another dataset with these data....Plz help in solving this
problem....

Thanks
Pintu

Dec 5 '06 #4
Thanks Goldin..I got ur point and now its working fine..

thanks again

Eliyahu Goldin wrote:
For GridView it is called Rows.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"pintu" <pr************ **@gmail.comwro te in message
news:11******** **************@ 79g2000cws.goog legroups.com...
Hi Goldin..
Thanks for the hints provided, but i am unable to find the items
collection of gridview.where as in elder version of .net i was able to
find the items collection of datagrid...So plz reply with some code if
possible..thank s again ..
Eliyahu Goldin wrote:
Pintu,

Datagrid exposes its content via the Items collection. There is nothing
stopping you from looping through the items (rows) and doing whatever you
want with the cell content including building a new dataset.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"pintu" <pr************ **@gmail.comwro te in message
news:11******** *************@1 6g2000cwy.googl egroups.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..sim ilarly is the reverse of this
mechanism possible ?i.e. means get the displayed data from datagrid and
fill another dataset with these data....Plz help in solving this
problem....

Thanks
Pintu
Dec 5 '06 #5

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

Similar topics

3
2000
by: crjunk | last post by:
I have a 3 table in my DataSet that I'm filling with data. After I've filled these 3 tables, I'm then trying to run a query that will fill a 4th table in the DataSet with data from the three tables that are already pouplated. When my code tries to fill the 4th table, ReportData, I receive the following error message: Invalid object name 'tmpPROJECTINFO'. Invalid object name 'tmpContacts'. Invalid object name 'tmpRECEIVEREC'. Can...
1
3932
by: Markus Palme | last post by:
Hi NG! I've created a typed dataset by dropping a table from the server explorer to the dataset designer. I bound this DataSet to a GriedView using a ObjectDataSource. The data is being displayed correctly. I encounter now a problem with editing the data. Not all columns are displayed, only some (AutoGenerateColumns == false), therefore I can't use the default "Update" methode of the generated DataSet because it required all columns...
1
2309
by: Siva | last post by:
Hi, I have a 3 tier ASP.Net app for a handheld which needs to fetch orders from database via a DAL and populate it in a gridview using objectdatasource. In the search page I have a few parameters and when the search button is clicked I am sending those parameters via query string ( I need to do this since my app will run in a handheld which has certain restrictions). In the order list page, I am passing those parameters to the DAL as...
3
14439
by: BartMan | last post by:
Greetings, I have a gridview which is sitting on a multi view control (witin a view), and it is bound to a dataset which I dynamically apply to the control within asp.net page. The problem is that I can't seem to resize my dataview's columns which are auto generated. Is there a way to do this? I have tried several different things, but I can't seem to get at the column collection to change the widths? MY development environment
4
1957
by: Justin | last post by:
I'm just learning ASP.NET 2.0 and everything I find on Datasets including the MSPress book I bought go way to far for what I need. I do not need to bind a datasource. My source will be a text file that I will read line by line. All I want to do is create a dataset and add records to it manualy that I will read from a text file. To start I'm just trying to add a single record. I then want to bind that dataset to a gridview. To...
8
18081
by: Greg Lyles | last post by:
Hi all, I'm trying to develop an ASP.NET 2.0 website and am running into some real problems with what I thought would be a relatively simple thing to do. In a nutshell, I'm stuck on trying to display data in a "GridView" which is tied to an "ObjectDataSource". In turn, this ObjectDatasource gets it's data from a strongly-typed business object within my code.
0
4319
by: Adam Sandler | last post by:
Hello, Prior to posting I looked at http://groups.google.com/group/ microsoft.public.dotnet.framework.aspnet/browse_thread/thread/ d8d5ae243614085e/d4fd6c4a5aa56f75 http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/abb4bcc39312a388/2de51eba9a0bcfd6 Hello,
2
4412
by: =?Utf-8?B?VmFpYmhhdg==?= | last post by:
I am trying to populate dataset from gridview but it's not working . Can anyone plz tell me how to do it..
2
3002
by: zhshqzyc | last post by:
I am going to past a dataset from First.aspx to Second.aspx. A whole table will be displayed on First.aspx and partial columns will be displayed on Second.aspx. First.aspx view in browser works well if I exclude Second.aspx. But when Second.aspx is included in the project, an error happens. I can't find what is wrong in my code. System.NullReferenceException was unhandled by user code Message="Object reference not set to an...
0
8668
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8598
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9014
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6515
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3037
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 we have to send another system
3
1995
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.