A
anand
hi,
let:
dataSet1 is having some data from database.
dataView1 = dataSet1.table(0).defaultView
dataGrid1.dataSource = dataView1
[.. programatically construct a tablestyle for the grid ..]
dataGrid1.TableStyle.add(myTableStyle1)
ok, now i show the datagrid on a form. the use left clicks on a cell,
changes a value, and WITHOUT CLICKING ON ANY OTHER CELL OF THE
DATAGRID,
clicks a button on the same form.
on button click, i do:
if dataSet1.HasChanges(DataRowState.Modified) then
dataSet2 = dataSet1.GetChanges(DataRowState.Modified)
end if
the problem is that dataSet2 has a table with one row, the row which
the use had clicked, BUT WITHOUT THE CHANGED DATA. it contains the
same old data with wich the grid was loaded initially.
is there any way out of this problem ? i need the changed data.
i have tried dataGrid1.refresh et.al....
saha
--
let:
dataSet1 is having some data from database.
dataView1 = dataSet1.table(0).defaultView
dataGrid1.dataSource = dataView1
[.. programatically construct a tablestyle for the grid ..]
dataGrid1.TableStyle.add(myTableStyle1)
ok, now i show the datagrid on a form. the use left clicks on a cell,
changes a value, and WITHOUT CLICKING ON ANY OTHER CELL OF THE
DATAGRID,
clicks a button on the same form.
on button click, i do:
if dataSet1.HasChanges(DataRowState.Modified) then
dataSet2 = dataSet1.GetChanges(DataRowState.Modified)
end if
the problem is that dataSet2 has a table with one row, the row which
the use had clicked, BUT WITHOUT THE CHANGED DATA. it contains the
same old data with wich the grid was loaded initially.
is there any way out of this problem ? i need the changed data.
i have tried dataGrid1.refresh et.al....
saha
--