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

C#

 
GeneralRe: Working with the MS Office Interop Assemblies --- Need help Pin
Xprt7-Jun-07 2:17
Xprt7-Jun-07 2:17 
QuestionMy DataGrid is not feeling well today Pin
Muammar©4-Jun-07 1:29
Muammar©4-Jun-07 1:29 
OracleConnection oraCONNECTION;
OracleDataAdapter oraADAPTER;
string strCommand;


private void rdIndicators_CheckedChanged(object sender, EventArgs e)
{
    if (rdIndicators.Checked)
    {
        dataGrid1.CaptionText = "Population Indicators";
        strCommand = @"SELECT * FROM PPL_INDICATORS";
        popDGrid();
    }
}

private void rdInst_CheckedChanged(object sender, EventArgs e)
{
    if (rdInst.Checked)
    {
        dataGrid1.CaptionText = "Institutional Structure";
        strCommand = @"SELECT * FROM INS_STRUCT";
        popDGrid();
    }

}


private void popDGrid()
{
    oraCONNECTION = new OracleConnection(@"Data Source=orcl; Persist Security Info=True;User ID=DLDSP; Password=DLDSP;Unicode=True");
    oraADAPTER = new OracleDataAdapter(strCommand, oraCONNECTION);

    DSet.Clear();
    oraADAPTER.Fill(DSet);
    dataGrid1.DataSource = DSet.Tables[0];
    dataGrid1.Refresh();
    this.Refresh();
}

Why do I get both tables columns every time I'm firing one of the above events??
Many thanksRose | [Rose]

ps. Hi ChristianBig Grin | :-D




Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)

AnswerRe: My DataGrid is not feeling well today Pin
Christian Graus4-Jun-07 1:43
protectorChristian Graus4-Jun-07 1:43 
GeneralRe: My DataGrid is not feeling well today Pin
Muammar©4-Jun-07 1:52
Muammar©4-Jun-07 1:52 
GeneralRe: My DataGrid is not feeling well today Pin
Christian Graus4-Jun-07 2:19
protectorChristian Graus4-Jun-07 2:19 
AnswerRe: My DataGrid is not feeling well today Pin
blackjack21504-Jun-07 1:51
blackjack21504-Jun-07 1:51 
GeneralRe: My DataGrid is not feeling well today Pin
Muammar©4-Jun-07 1:54
Muammar©4-Jun-07 1:54 
GeneralRe: My DataGrid is not feeling well today Pin
blackjack21504-Jun-07 2:07
blackjack21504-Jun-07 2:07 
QuestionMessenger client with plugin support Pin
Genbox4-Jun-07 1:20
Genbox4-Jun-07 1:20 
QuestionStand by event hook Pin
Shajeel4-Jun-07 0:22
Shajeel4-Jun-07 0:22 
AnswerRe: Stand by event hook Pin
originSH4-Jun-07 1:33
originSH4-Jun-07 1:33 
GeneralRe: Stand by event hook Pin
Shajeel4-Jun-07 1:35
Shajeel4-Jun-07 1:35 
GeneralRe: Stand by event hook Pin
originSH4-Jun-07 5:17
originSH4-Jun-07 5:17 
QuestionXmlDocument or XmlTextreader Pin
justintimberlake4-Jun-07 0:19
justintimberlake4-Jun-07 0:19 
JokeRe: XmlDocument or XmlTextreader Pin
blackjack21504-Jun-07 1:54
blackjack21504-Jun-07 1:54 
GeneralRe: XmlDocument or XmlTextreader Pin
justintimberlake4-Jun-07 1:57
justintimberlake4-Jun-07 1:57 
AnswerRe: XmlDocument or XmlTextreader Pin
blackjack21504-Jun-07 2:00
blackjack21504-Jun-07 2:00 
GeneralRe: XmlDocument or XmlTextreader Pin
justintimberlake4-Jun-07 2:14
justintimberlake4-Jun-07 2:14 
GeneralRe: XmlDocument or XmlTextreader Pin
justintimberlake4-Jun-07 2:15
justintimberlake4-Jun-07 2:15 
GeneralRe: XmlDocument or XmlTextreader Pin
blackjack21504-Jun-07 3:51
blackjack21504-Jun-07 3:51 
GeneralRe: XmlDocument or XmlTextreader Pin
justintimberlake4-Jun-07 18:22
justintimberlake4-Jun-07 18:22 
QuestionA webpage layout Pin
matjame4-Jun-07 0:09
matjame4-Jun-07 0:09 
AnswerRe: A webpage layout Pin
Christian Graus4-Jun-07 0:15
protectorChristian Graus4-Jun-07 0:15 
QuestionNew to C# with Asp.Net!! [modified] Pin
Kumar!4-Jun-07 0:02
Kumar!4-Jun-07 0:02 
AnswerRe: New to C# with Asp.Net!! Pin
Christian Graus4-Jun-07 0:07
protectorChristian Graus4-Jun-07 0:07 

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.