Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
GeneralRe: [Message Deleted] Pin
0x3c024-Jun-09 21:03
0x3c024-Jun-09 21:03 
GeneralRe: [Message Deleted] Pin
Abdul Rahman Hamidy24-Jun-09 21:07
Abdul Rahman Hamidy24-Jun-09 21:07 
AnswerRe: XML to DataTable Pin
Rajesh Anuhya24-Jun-09 21:08
professionalRajesh Anuhya24-Jun-09 21:08 
QuestionHow to download .jar file to Mobile using asp.net and c# Pin
rekhashiji24-Jun-09 18:29
rekhashiji24-Jun-09 18:29 
QuestionChange a forums start up position [modified] Pin
2TammyB24-Jun-09 15:42
2TammyB24-Jun-09 15:42 
AnswerRe: Change a forums start up position Pin
Christian Graus24-Jun-09 16:19
protectorChristian Graus24-Jun-09 16:19 
AnswerRe: Change a forums start up position Pin
Mycroft Holmes24-Jun-09 19:16
professionalMycroft Holmes24-Jun-09 19:16 
QuestionDataGridViews and ComboBoxes Pin
Illegal Operation24-Jun-09 14:02
Illegal Operation24-Jun-09 14:02 
I have a WinForm with a DropDownList and DataGridView. I need to display the States based on the Country selected.

This is my Code:

private void cbCountry_SelectedIndexChanged(object sender, EventArgs e)
{
    if (loading == false)
    {
        CountryId = (int.Parse(cbCountry.SelectedValue.ToString()));

        this.dsWBGT = dataComm.GetStateByCountryId(CountryId);
        dgvState.DataSource = this.dsWBGT;
    }
}


When I step through the app everything works and the dataset gets the correct info but the DataGridView only display (Collection)

Can someone tell me what am I doing wrong?

I am populating the combobox with the following code:

private void PopulateCountries()
{
    DataSet dsCountries = dataComm.GetCountries();

    cbCountry.DataSource = dsCountries.Tables["Country"].DefaultView;
    cbCountry.DisplayMember = "Country";
    cbCountry.ValueMember = "Id";
}


Illegal Operation

AnswerRe: DataGridViews and ComboBoxes Pin
Illegal Operation24-Jun-09 15:43
Illegal Operation24-Jun-09 15:43 
GeneralRe: DataGridViews and ComboBoxes Pin
jdhforever24-Jun-09 16:17
jdhforever24-Jun-09 16:17 
GeneralRe: DataGridViews and ComboBoxes Pin
Illegal Operation24-Jun-09 16:35
Illegal Operation24-Jun-09 16:35 
QuestionGetting XHTML tags by tag name Pin
Jordanwb24-Jun-09 12:00
Jordanwb24-Jun-09 12:00 
AnswerRe: Getting XHTML tags by tag name Pin
harold aptroot24-Jun-09 12:59
harold aptroot24-Jun-09 12:59 
GeneralRe: Getting XHTML tags by tag name [modified] Pin
Jordanwb25-Jun-09 7:12
Jordanwb25-Jun-09 7:12 
GeneralRe: Getting XHTML tags by tag name Pin
harold aptroot25-Jun-09 7:26
harold aptroot25-Jun-09 7:26 
GeneralRe: Getting XHTML tags by tag name Pin
Jordanwb25-Jun-09 7:29
Jordanwb25-Jun-09 7:29 
GeneralRe: Getting XHTML tags by tag name Pin
harold aptroot25-Jun-09 7:30
harold aptroot25-Jun-09 7:30 
GeneralRe: Getting XHTML tags by tag name Pin
Jordanwb25-Jun-09 7:35
Jordanwb25-Jun-09 7:35 
Questionmenustirp items disappear from designer, but still in properties list Pin
ThorTheBraveGod24-Jun-09 11:26
ThorTheBraveGod24-Jun-09 11:26 
AnswerRe: menustirp items disappear from designer, but still in properties list Pin
Cracked-Down24-Jun-09 20:24
Cracked-Down24-Jun-09 20:24 
GeneralRe: menustirp items disappear from designer, but still in properties list Pin
ThorTheBraveGod25-Jun-09 3:19
ThorTheBraveGod25-Jun-09 3:19 
AnswerRe: menustirp items disappear from designer, but still in properties list Pin
ThorTheBraveGod25-Jun-09 10:21
ThorTheBraveGod25-Jun-09 10:21 
QuestionUnable to read data from the transport connection: An existing connection was forcibly closed by the remote host Pin
milenalukic24-Jun-09 11:10
milenalukic24-Jun-09 11:10 
AnswerRe: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host Pin
Colin Angus Mackay24-Jun-09 13:20
Colin Angus Mackay24-Jun-09 13:20 
GeneralRe: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host Pin
milenalukic24-Jun-09 22:08
milenalukic24-Jun-09 22:08 

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.