Click here to Skip to main content
16,005,290 members
Home / Discussions / C#
   

C#

 
Generalusing system.xml Pin
Mridang Agarwalla2-Oct-04 0:16
Mridang Agarwalla2-Oct-04 0:16 
GeneralRe: using system.xml Pin
hatim_ali2-Oct-04 0:33
hatim_ali2-Oct-04 0:33 
GeneralRe: using system.xml Pin
Kevin McFarlane2-Oct-04 11:50
Kevin McFarlane2-Oct-04 11:50 
Generalusing dlls Pin
Mridang Agarwalla2-Oct-04 0:15
Mridang Agarwalla2-Oct-04 0:15 
GeneralRe: using dlls Pin
hatim_ali2-Oct-04 0:35
hatim_ali2-Oct-04 0:35 
GeneralRe: using dlls Pin
Salil Khedkar4-Oct-04 1:18
Salil Khedkar4-Oct-04 1:18 
GeneralColor of GroupBox caption Pin
Joe Woodbury1-Oct-04 23:12
professionalJoe Woodbury1-Oct-04 23:12 
Generalurgent: question about update data using DataAdapter.Update Pin
fox_chen1-Oct-04 12:52
fox_chen1-Oct-04 12:52 
I wrote some code to show data from access using datagrid. However, when I try to update or delete data, it always report error that Dynamic SQL generation for the UpdateCommand or DeleteCommand is not supported against a SelectCommand that does not return any key column information. However, when i add data, it is fine.
private OleDbDataAdapter adapter;
private DataSet ds;
private DataTable table;
private DataForm form;
private TextBox[] txtBox;
private OleDbCommandBuilder builder ;
try
{
adapter = new OleDbDataAdapter("select * from CMA",
"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=datainfo.mdb");
builder = new OleDbCommandBuilder(adapter);
ds = new DataSet();
adapter.Fill(ds);
dataGrid1.DataSource = ds;
table = ds.Tables[0];
dataGrid1.SetDataBinding(table, "");
this.dataGrid1.CaptionText = "Table: CMA";

}
catch(OleDbException ex)
{
MessageBox.Show(ex.Message);
}
private void OnDeleteData(Object sender, EventArgs e)
{
for(int i=0;i
GeneralRe: urgent: question about update data using DataAdapter.Update Pin
Heath Stewart1-Oct-04 14:46
protectorHeath Stewart1-Oct-04 14:46 
GeneralRe: urgent: question about update data using DataAdapter.Update Pin
fox_chen2-Oct-04 9:53
fox_chen2-Oct-04 9:53 
Generalpropertygrid Pin
GoodQuestion1-Oct-04 11:44
GoodQuestion1-Oct-04 11:44 
GeneralRe: propertygrid Pin
Heath Stewart1-Oct-04 14:50
protectorHeath Stewart1-Oct-04 14:50 
GeneralRe: propertygrid Pin
Nick Parker2-Oct-04 9:57
protectorNick Parker2-Oct-04 9:57 
GeneralRe: propertygrid Pin
Alex Korchemniy2-Oct-04 10:27
Alex Korchemniy2-Oct-04 10:27 
GeneralRe: propertygrid Pin
GoodQuestion4-Oct-04 6:51
GoodQuestion4-Oct-04 6:51 
GeneralRe: propertygrid Pin
Heath Stewart4-Oct-04 7:52
protectorHeath Stewart4-Oct-04 7:52 
GeneralRe: propertygrid Pin
GoodQuestion5-Oct-04 11:44
GoodQuestion5-Oct-04 11:44 
GeneralRe: propertygrid Pin
Heath Stewart5-Oct-04 12:25
protectorHeath Stewart5-Oct-04 12:25 
GeneralRe: propertygrid Pin
GoodQuestion6-Oct-04 12:46
GoodQuestion6-Oct-04 12:46 
GeneralRe: propertygrid Pin
Heath Stewart6-Oct-04 14:48
protectorHeath Stewart6-Oct-04 14:48 
GeneralStored Procedures - SQL Database Pin
pat2708811-Oct-04 11:32
pat2708811-Oct-04 11:32 
GeneralRe: Stored Procedures - SQL Database Pin
Colin Angus Mackay1-Oct-04 14:39
Colin Angus Mackay1-Oct-04 14:39 
GeneralRe: Stored Procedures - SQL Database Pin
pat2708811-Oct-04 21:23
pat2708811-Oct-04 21:23 
GeneralIIS Error Pin
pat2708811-Oct-04 11:32
pat2708811-Oct-04 11:32 
GeneralRe: IIS Error Pin
Heath Stewart1-Oct-04 14:52
protectorHeath Stewart1-Oct-04 14:52 

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.