Click here to Skip to main content
15,895,709 members
Home / Discussions / C#
   

C#

 
GeneralRe: multiple form indows application in C# Pin
sanki7794-Jun-07 3:40
sanki7794-Jun-07 3:40 
QuestionWorking with the MS Office Interop Assemblies --- Need help Pin
Xprt4-Jun-07 2:03
Xprt4-Jun-07 2:03 
AnswerRe: Working with the MS Office Interop Assemblies --- Need help Pin
kubben4-Jun-07 2:22
kubben4-Jun-07 2:22 
GeneralRe: Working with the MS Office Interop Assemblies --- Need help Pin
Xprt4-Jun-07 18:51
Xprt4-Jun-07 18:51 
GeneralRe: Working with the MS Office Interop Assemblies --- Need help Pin
SimulationofSai4-Jun-07 22:43
SimulationofSai4-Jun-07 22:43 
GeneralRe: Working with the MS Office Interop Assemblies --- Need help Pin
kubben5-Jun-07 1:44
kubben5-Jun-07 1:44 
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 

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.