Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: exception not catching Pin
Rob Tomson23-May-05 18:44
Rob Tomson23-May-05 18:44 
GeneralRe: exception not catching Pin
mav.northwind23-May-05 19:40
mav.northwind23-May-05 19:40 
GeneralRe: exception not catching Pin
Rob Tomson23-May-05 20:22
Rob Tomson23-May-05 20:22 
GeneralWindows Media Player component Pin
methodincharge23-May-05 9:39
methodincharge23-May-05 9:39 
GeneralRe: Windows Media Player component Pin
Christian Graus23-May-05 12:01
protectorChristian Graus23-May-05 12:01 
GeneralRe: Windows Media Player component Pin
methodincharge23-May-05 13:19
methodincharge23-May-05 13:19 
Generalcontroling the event handler Pin
Gil.Schmidt23-May-05 9:02
Gil.Schmidt23-May-05 9:02 
GeneralDataTable.GetChanges return null Pin
Alomgir Miah23-May-05 8:55
Alomgir Miah23-May-05 8:55 
Hi,

I have a DataGrid bound to a DataTable. I used the following code to bind the DataTable,

//
//Set the datasource of the Grid
//
this.dataGridPCUD.DataSource = this.dataTable;

There is a save button that user clicks to save the information. The problem is that when the user
makes changes and clicks Save, the information from the last cell of the GRID is not seen by the
DataTable.

I used the following code to get the changes

CurrencyManager currencyManager = (CurrencyManager) this.dataGridPCUD.BindingContext[this.dataTable];
if (currencyManager != null)
{
currencyManager.EndCurrentEdit();
currencyManager. Refresh();
}

DataTable subDataTable = this.dataTable.GetChanges(DataRowState.Modified);


The heilighted line returns null. But when I check the new value in the DataTable, I see the modifies value.
Everything works fine if the uses tabs out before saving.

Please advise.

Thanks and Regards,
Alomgir Miah

GeneralActive Directory question Pin
joe_coolish23-May-05 5:48
joe_coolish23-May-05 5:48 
Generalset actions on [un]install project Pin
Sasuko23-May-05 5:47
Sasuko23-May-05 5:47 
GeneralXML node selection Pin
Member 178430323-May-05 5:46
Member 178430323-May-05 5:46 
GeneralRe: XML node selection Pin
Alomgir Miah23-May-05 8:54
Alomgir Miah23-May-05 8:54 
GeneralI need random number Pin
Sasuko23-May-05 5:19
Sasuko23-May-05 5:19 
GeneralRe: I need random number Pin
J4amieC23-May-05 5:21
J4amieC23-May-05 5:21 
GeneralRe: I need random number Pin
eggie523-May-05 12:02
eggie523-May-05 12:02 
GeneralRe: I need random number Pin
DavidNohejl23-May-05 12:38
DavidNohejl23-May-05 12:38 
GeneralRe: I need random number Pin
eggie523-May-05 12:42
eggie523-May-05 12:42 
GeneralRe: I need random number Pin
DavidNohejl23-May-05 12:49
DavidNohejl23-May-05 12:49 
GeneralParser Error Message: File or assembly name Acme, or one of its dependencies, was not found. Pin
Anonymous23-May-05 3:50
Anonymous23-May-05 3:50 
GeneralRe: Parser Error Message: File or assembly name Acme, or one of its dependencies, was not found. Pin
J4amieC23-May-05 5:19
J4amieC23-May-05 5:19 
GeneralWMI win32_process exited Pin
haimlz23-May-05 3:30
haimlz23-May-05 3:30 
GeneralTreeView Node selection Pin
Dylan van Heerden23-May-05 2:58
Dylan van Heerden23-May-05 2:58 
GeneralRe: TreeView Node selection Pin
mav.northwind23-May-05 3:30
mav.northwind23-May-05 3:30 
GeneralRe: TreeView Node selection Pin
Dylan van Heerden23-May-05 7:30
Dylan van Heerden23-May-05 7:30 
GeneralButtons image are all gray on disable mode on a toolbar. Pin
udir23-May-05 1:38
udir23-May-05 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.