469,904 Members | 2,065 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

DataGrid, DataSet, GetChanges question

In winforms, I can bind a datagrid to a dataset. When the user wants to
submit changes, it's easy to see what has changed with the DataSet
"GetChanges" method.

In ASP.Net, I can create the dataset, bind it to the grid, then send to
the user. But upon postback, I have no way of knowing which items
changed on the datagrid. Do I really have to roll my own code for this
or is it possible to use the GetChanges method on the dataset after
all? Thanks --Marty

Nov 19 '05 #1
1 2229
Hi Marty,

Due to client-server mode, a web application can't tightly
bind a datagrid with its underlying data source. Hence
once postback, you need to get data from datagrid itself,
e.g. datagrid.Items[rowIndex].Cells[colIndex].Text. There
is no way to use GetChanges on it's underlying dataset.

HTH

Elton Wang
el********@hotmail.com

-----Original Message-----
In winforms, I can bind a datagrid to a dataset. When the user wants tosubmit changes, it's easy to see what has changed with the DataSet"GetChanges" method.

In ASP.Net, I can create the dataset, bind it to the grid, then send tothe user. But upon postback, I have no way of knowing which itemschanged on the datagrid. Do I really have to roll my own code for thisor is it possible to use the GetChanges method on the dataset afterall? Thanks --Marty

.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by BFX | last post: by
4 posts views Thread by Glenn Owens | last post: by
7 posts views Thread by uiranejeb | last post: by
12 posts views Thread by Graham Blandford | last post: by
2 posts views Thread by Brian Hoops | last post: by
3 posts views Thread by John Sheppard | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.