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
************************************
}
}
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
************************************
}
}