Click here to Skip to main content
15,891,789 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bewitching Windows XP's Insides! Pin
Stephane Rodriguez.4-Mar-03 8:24
Stephane Rodriguez.4-Mar-03 8:24 
GeneralRe: Bewitching Windows XP's Insides! Pin
Nnamdi Onyeyiri4-Mar-03 8:45
Nnamdi Onyeyiri4-Mar-03 8:45 
GeneralDataGrid cell Selection & Text selection Pin
stone1984-Mar-03 4:50
stone1984-Mar-03 4:50 
GeneralUsing XML files as a database Pin
TeaTime4-Mar-03 3:33
TeaTime4-Mar-03 3:33 
GeneralRe: Using XML files as a database Pin
Mark Sanders4-Mar-03 9:50
Mark Sanders4-Mar-03 9:50 
GeneralRe: Using XML files as a database Pin
Nick Parker4-Mar-03 18:56
protectorNick Parker4-Mar-03 18:56 
QuestionMultiple Forms: Hot to get Keyboard Input from any form and any Control? Pin
STW4-Mar-03 2:38
STW4-Mar-03 2:38 
GeneralDeleting a row from a datagrid Pin
Yann CK3-Mar-03 23:54
Yann CK3-Mar-03 23:54 
Hi,

I have a DataGrid Bound to a table. How can I update my table after a row has been selected and deleted from the grid?

I tryed the following (but it did not work):
CurrencyManager cm = (CurrencyManager)this.BindingContext[myDatagrid.DataSource, MydataGrid.DataMember];
cm.EndCurrentEdit();
cm.Refresh();

SqlDataAdapter da = new SqlDataAdapter();
da.Update(myTableBoundToTheDatagrid);

Let's say i have 1 row in my table, I delete it from the grid, I still have one row in my table, after running the code above.

Thanks for any comment,

YannConfused | :confused:
GeneralRe: Deleting a row from a datagrid Pin
Adam Turner5-Mar-03 12:57
Adam Turner5-Mar-03 12:57 
GeneralAccesinng IPHLPAPI.DLL GetNetworkParams() from C# Pin
Member 2680673-Mar-03 22:29
Member 2680673-Mar-03 22:29 
GeneralWindows XP and Many Many Windows Pin
Adam Turner3-Mar-03 21:29
Adam Turner3-Mar-03 21:29 
GeneralProvideProperty for event property Pin
jclanz3-Mar-03 21:10
jclanz3-Mar-03 21:10 
GeneralData Grid doubt Pin
Smitha Nishant3-Mar-03 19:51
protectorSmitha Nishant3-Mar-03 19:51 
GeneralRe: Data Grid doubt Pin
Peter Kiss4-Mar-03 0:34
Peter Kiss4-Mar-03 0:34 
GeneralRe: Data Grid doubt Pin
A.Wegierski4-Mar-03 0:34
A.Wegierski4-Mar-03 0:34 
GeneralRe: Data Grid doubt - Thanks Pin
Smitha Nishant4-Mar-03 4:21
protectorSmitha Nishant4-Mar-03 4:21 
Generalodd form behavior Pin
grv5753-Mar-03 10:51
grv5753-Mar-03 10:51 
Generalscroll and focus bug Pin
bwells3-Mar-03 9:22
bwells3-Mar-03 9:22 
GeneralHelp: Unable To Copy Data (In Structure) from Unmanged MFC/C++ App to .NET Pin
Gaul3-Mar-03 9:00
Gaul3-Mar-03 9:00 
GeneralSaving Treeview/Listview selections Pin
vlusardi3-Mar-03 7:47
vlusardi3-Mar-03 7:47 
GeneralRegistry and dWord values Pin
codeweenie3-Mar-03 7:36
codeweenie3-Mar-03 7:36 
GeneralRe: Registry and dWord values Pin
leppie3-Mar-03 7:51
leppie3-Mar-03 7:51 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 8:05
codeweenie3-Mar-03 8:05 
GeneralRe: Registry and dWord values Pin
Paul Riley3-Mar-03 8:31
Paul Riley3-Mar-03 8:31 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 9:46
codeweenie3-Mar-03 9:46 

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.