DataGrid refresh

G

Guest

Hi,
When I modify one of the data in dataGrid, then press on <ALT+'A'> to execute(Apply Button).
In applay Button I read the DataGrid rows value ,I read the same value as before my change, Why? how to refresh the value after changes , also why the keyPress Event not work? how to Enable it ?

In Apply Button I do the following:
int data = 0;
for(int r=0;r<dataTable.Rows.Count;r++)
{
for(int c=1;c<dataTable.Columns.Count;c++,data++)
{
System.Data.DataRow currentRow = dataTable.Rows[r];
Object t = currentRow.ItemArray;
string arg = t[c].ToString();
************************************
arg = the Old value befor my chang
************************************
}
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top