By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,212 Members | 1,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,212 IT Pros & Developers. It's quick & easy.

filling dataset from data displayed on Gridview

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.