Click here to Skip to main content
15,921,694 members
Home / Discussions / C#
   

C#

 
AnswerRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
Josh Smith12-Jul-06 4:26
Josh Smith12-Jul-06 4:26 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
jabberman12-Jul-06 4:50
jabberman12-Jul-06 4:50 
AnswerRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
Christian Graus12-Jul-06 4:30
protectorChristian Graus12-Jul-06 4:30 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
jabberman12-Jul-06 4:45
jabberman12-Jul-06 4:45 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
Christian Graus12-Jul-06 4:47
protectorChristian Graus12-Jul-06 4:47 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
jabberman20-Jul-06 5:22
jabberman20-Jul-06 5:22 
GeneralRe: Catching Dynamic Button Events (C# / ASP.NET) Pin
Christian Graus20-Jul-06 9:43
protectorChristian Graus20-Jul-06 9:43 
QuestionFirst record displayed in list/combobox shows "System.Data.DataRowView" instead of the value Pin
Glen Harvy12-Jul-06 3:26
Glen Harvy12-Jul-06 3:26 
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').

I can't find any help after much searching the net.

Anyone know why?

TIA.

Regards,

Glen Harvy
AnswerRe: First record displayed in list/combobox shows "System.Data.DataRowView" instead of the value Pin
Josh Smith12-Jul-06 3:42
Josh Smith12-Jul-06 3:42 
GeneralRe: First record displayed in list/combobox shows "System.Data.DataRowView" instead of the value Pin
Glen Harvy12-Jul-06 12:40
Glen Harvy12-Jul-06 12:40 
QuestionListView Sorting Problem [modified] Pin
Abhijeet Bhamare12-Jul-06 3:17
Abhijeet Bhamare12-Jul-06 3:17 
AnswerRe: ListView Sorting Problem Pin
Josh Smith12-Jul-06 3:47
Josh Smith12-Jul-06 3:47 
AnswerRe: ListView Sorting Problem Pin
Andrew Lygin12-Jul-06 18:21
Andrew Lygin12-Jul-06 18:21 
Questionworking with Excel Pin
DJPaul12-Jul-06 3:02
DJPaul12-Jul-06 3:02 
AnswerRe: working with Excel Pin
alexey N12-Jul-06 21:24
alexey N12-Jul-06 21:24 
Questionread xml file Pin
Mohammad Daba'an12-Jul-06 2:55
Mohammad Daba'an12-Jul-06 2:55 
AnswerRe: read xml file Pin
stancrm12-Jul-06 2:57
stancrm12-Jul-06 2:57 
GeneralRe: read xml file Pin
Mohammad Daba'an12-Jul-06 3:30
Mohammad Daba'an12-Jul-06 3:30 
GeneralRe: read xml file Pin
stancrm12-Jul-06 3:55
stancrm12-Jul-06 3:55 
Questiondownlaod music file & play it in c#.net Pin
Bibhu Sh. Panigrahi12-Jul-06 2:48
Bibhu Sh. Panigrahi12-Jul-06 2:48 
GeneralMSXML2.ServerXMLHTTP50 replacement in .NET [modified] Pin
Abhinav Nigam12-Jul-06 2:45
Abhinav Nigam12-Jul-06 2:45 
QuestionHow to set display of a column according to its value in DataGrid? Pin
Jovito12-Jul-06 1:55
Jovito12-Jul-06 1:55 
QuestionWritting to Word document template Pin
AfriDiesel12-Jul-06 1:37
AfriDiesel12-Jul-06 1:37 
QuestionDatabase to XML file Pin
johan313112-Jul-06 0:23
johan313112-Jul-06 0:23 
AnswerRe: Database to XML file Pin
Ed.Poore12-Jul-06 1:21
Ed.Poore12-Jul-06 1:21 

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.