Click here to Skip to main content
15,924,581 members
Home / Discussions / Database
   

Database

 
QuestionSQL 2005 Backup Problem Pin
DineshSharma11-Jul-06 1:43
DineshSharma11-Jul-06 1:43 
AnswerRe: SQL 2005 Backup Problem Pin
albCode11-Jul-06 5:11
albCode11-Jul-06 5:11 
Questionauto upload/export of a downloaded CSV file to SQLSERVER on the server Pin
amitcoder8310-Jul-06 19:51
amitcoder8310-Jul-06 19:51 
AnswerRe: auto upload/export of a downloaded CSV file to SQLSERVER on the server Pin
Paul Conrad10-Jul-06 21:41
professionalPaul Conrad10-Jul-06 21:41 
QuestionWhere do i start? [modified] Pin
[Marc]10-Jul-06 18:41
[Marc]10-Jul-06 18:41 
AnswerRe: Where do i start? Pin
Colin Angus Mackay10-Jul-06 20:17
Colin Angus Mackay10-Jul-06 20:17 
AnswerRe: Where do i start? Pin
Eric Dahlvang11-Jul-06 6:04
Eric Dahlvang11-Jul-06 6:04 
QuestionFirst record in list creates 'System.Data.DataRowView' Pin
Glen Harvy10-Jul-06 15:31
Glen Harvy10-Jul-06 15:31 
Hi,

Using VS2003 and C#, I have created oleDbAdapaters to fill a data set and used a combo box to allow easy selection of choices for amending record fields. Here's the code for the combobox:

// comboBoxMembershipLevel
//
this.comboBoxMembershipLevel.DataBindings.Add(new System.Windows.Forms.Binding("SelectedItem", this.myClubDataSet12,"MembershipLevels.MembershipLevelName"));
this.comboBoxMembershipLevel.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.myClubDataSet12, "MemberDetails.MembershipLevel"));
this.comboBoxMembershipLevel.DataSource = this.myClubDataSet12.MembershipLevels;
this.comboBoxMembershipLevel.DisplayMember = "MembershipLevelName";
this.comboBoxMembershipLevel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.comboBoxMembershipLevel.Location = new System.Drawing.Point(584, 80);
this.comboBoxMembershipLevel.Name = "comboBoxMembershipLevel";
this.comboBoxMembershipLevel.Size = new System.Drawing.Size(121, 21);
this.comboBoxMembershipLevel.TabIndex = 40;
this.comboBoxMembershipLevel.ValueMember = "MembershipLevel";
//

The table "MembershipLevels" has three fields - ID(autogenerated key), MembershipLevel(int) and MembershipLevelName(text). The MemebershipLevel is stored for each record in the table MembersDetails.MembershipLevel(int).

When I select the first member of the drop down list and then move away and back to the record concerned I get 'System.Data.DataRowView' in the display box. Chosing any of the other members of the drop down list and all works fine - it only occurs when I chose the first member of the drop down list.

Saving the changes from the dataset to the database whilst the 'System.Data.DataRowView' is showing updates the database with the correct field data (ie a number and not 'System.Data.DataRowView').

Be kind to me - Im only learning.

TIA.

Regards,

Glen Harvy
QuestionConnecting to SQL Server Express 2005 using C# Pin
Cadence2.010-Jul-06 14:20
Cadence2.010-Jul-06 14:20 
AnswerRe: Connecting to SQL Server Express 2005 using C# Pin
Paul Conrad10-Jul-06 14:39
professionalPaul Conrad10-Jul-06 14:39 
QuestionWhich local datasource to use? [modified] Pin
Rashar10-Jul-06 13:44
Rashar10-Jul-06 13:44 
AnswerRe: Which local datasource to use? Pin
god_bless_the_world10-Jul-06 13:56
god_bless_the_world10-Jul-06 13:56 
QuestionError with INSERT statement Pin
leckey10-Jul-06 11:09
leckey10-Jul-06 11:09 
AnswerRe: Error with INSERT statement Pin
Colin Angus Mackay10-Jul-06 12:13
Colin Angus Mackay10-Jul-06 12:13 
QuestionGetting the SUM of two field values [modified] Pin
Nino_110-Jul-06 9:06
Nino_110-Jul-06 9:06 
AnswerRe: Getting the SUM of two field values Pin
Eric Dahlvang10-Jul-06 9:16
Eric Dahlvang10-Jul-06 9:16 
GeneralRe: Getting the SUM of two field values Pin
Nino_110-Jul-06 11:44
Nino_110-Jul-06 11:44 
GeneralRe: Getting the SUM of two field values Pin
Eric Dahlvang10-Jul-06 12:00
Eric Dahlvang10-Jul-06 12:00 
GeneralRe: Getting the SUM of two field values Pin
Nino_111-Jul-06 7:04
Nino_111-Jul-06 7:04 
Questionusing BETWEEN in sql2005 Pin
toink toink9-Jul-06 21:29
toink toink9-Jul-06 21:29 
AnswerRe: using BETWEEN in sql2005 Pin
Colin Angus Mackay9-Jul-06 23:39
Colin Angus Mackay9-Jul-06 23:39 
Questionhow to use now() function in the Access when I write SQL Pin
KSCsoft9-Jul-06 3:33
KSCsoft9-Jul-06 3:33 
AnswerRe: how to use now() function in the Access when I write SQL Pin
kumarprabhakar7410-Jul-06 1:14
kumarprabhakar7410-Jul-06 1:14 
AnswerRe: how to use now() function in the Access when I write SQL Pin
kumarprabhakar7410-Jul-06 1:15
kumarprabhakar7410-Jul-06 1:15 
QuestionData Source Reconciliation (Sybase) Pin
SSLaks9-Jul-06 1:41
SSLaks9-Jul-06 1:41 

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.