Click here to Skip to main content
15,920,111 members
Home / Discussions / C#
   

C#

 
GeneralShaped Controls from an Image Pin
Anonymous20-Jun-05 10:07
Anonymous20-Jun-05 10:07 
GeneralPlugins and Add Ins with C# Pin
YorgZero20-Jun-05 9:35
YorgZero20-Jun-05 9:35 
GeneralRe: Plugins and Add Ins with C# Pin
Steve Maier20-Jun-05 10:43
professionalSteve Maier20-Jun-05 10:43 
QuestionHow To Detect Workstation lock?[C#] Pin
Tapan Pathak20-Jun-05 8:41
Tapan Pathak20-Jun-05 8:41 
GeneralDatagrid and updating Pin
mhmo20-Jun-05 5:55
mhmo20-Jun-05 5:55 
GeneralRe: Datagrid and updating Pin
Stanciu Vlad20-Jun-05 6:16
Stanciu Vlad20-Jun-05 6:16 
GeneralRe: Datagrid and updating Pin
mhmo20-Jun-05 6:47
mhmo20-Jun-05 6:47 
GeneralRe: Datagrid and updating Pin
mhmo20-Jun-05 7:26
mhmo20-Jun-05 7:26 
This is my code to display the table into the datagrid.

private void btnShow_Click(object sender, System.EventArgs e)
{
try
{
//set SQL query
oleDbDataAdapter1.SelectCommand.CommandText = "SELECT * FROM KeyAnswers";

//clear dataset
dataSet1.Clear();

//Fill dataset with information
oleDbDataAdapter1.Fill(dataSet1,"KeyAnswers");

//bind datagrid
dataGrid1.SetDataBinding(dataSet1,"KeyAnswers");
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}

finally {
}
}

This is when I click the show button.
Now I want to create a "Update" button . what should be the code?
Should I update the whole table wheras only one record has been changed?!!

waitting.....

thanks
GeneralRe: Datagrid and updating Pin
mhmo20-Jun-05 19:38
mhmo20-Jun-05 19:38 
GeneralRe: Datagrid and updating Pin
Stanciu Vlad20-Jun-05 21:29
Stanciu Vlad20-Jun-05 21:29 
GeneralImporting a Type library in C# Pin
anderslundsgard20-Jun-05 5:16
anderslundsgard20-Jun-05 5:16 
GeneralNeed help plz Pin
hediii20-Jun-05 4:30
hediii20-Jun-05 4:30 
GeneralRe: Need help plz Pin
J4amieC20-Jun-05 5:46
J4amieC20-Jun-05 5:46 
GeneralResizing Images, annoying border. Pin
F_A_C20-Jun-05 4:28
F_A_C20-Jun-05 4:28 
GeneralRe: Resizing Images, annoying border. Pin
Christian Graus20-Jun-05 14:49
protectorChristian Graus20-Jun-05 14:49 
GeneralRe: Resizing Images, annoying border. Pin
F_A_C20-Jun-05 23:21
F_A_C20-Jun-05 23:21 
GeneralRe: Resizing Images, annoying border. Pin
Christian Graus21-Jun-05 12:57
protectorChristian Graus21-Jun-05 12:57 
QuestionHow can I disable scripting in a WebBrowser control? Pin
weslund20-Jun-05 4:24
weslund20-Jun-05 4:24 
GeneralDisabling a network card Pin
easander20-Jun-05 4:06
easander20-Jun-05 4:06 
Generalmissing disable property of all input controls Pin
fracalifa20-Jun-05 4:03
fracalifa20-Jun-05 4:03 
GeneralRe: missing disable property of all input controls Pin
Robert Rohde20-Jun-05 7:17
Robert Rohde20-Jun-05 7:17 
QuestionDllImport a class…? Pin
anderslundsgard20-Jun-05 3:48
anderslundsgard20-Jun-05 3:48 
GeneralDatabinding Pin
chukkykzn20-Jun-05 1:45
chukkykzn20-Jun-05 1:45 
GeneralRe: Databinding Pin
Marc Clifton20-Jun-05 3:41
mvaMarc Clifton20-Jun-05 3:41 
GeneralSQL INSERT.. Please Help.. Pin
fire8520-Jun-05 0:02
fire8520-Jun-05 0:02 

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.