473,322 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

filling dataset from data displayed on Gridview

Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..similarly 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 1604
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.comwrote in message
news:11*********************@16g2000cwy.googlegrou ps.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..similarly 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..thanks 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.comwrote in message
news:11*********************@16g2000cwy.googlegrou ps.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..similarly 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.comwrote in message
news:11**********************@79g2000cws.googlegro ups.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..thanks 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.comwrote in message
news:11*********************@16g2000cwy.googlegrou ps.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..similarly 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.comwrote in message
news:11**********************@79g2000cws.googlegro ups.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..thanks 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.comwrote in message
news:11*********************@16g2000cwy.googlegrou ps.com...
Hi.. As we are assigning gridview's datasource to
sqldatasource/dataset/datatabl*e..similarly 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
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...
1
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...
1
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...
3
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...
4
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...
8
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...
0
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 ...
2
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
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.