|
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 thanks
ps. Hi Christian
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Muammar© wrote: ps. Hi Christian
LOL !!!
Have you traced through the code ? What is the SQL going in ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Yes, I thought I need to refresh, re-draw, re-load, re-something the DataGrid/DataGridView //I tried both and end up with the same result.
Really blind to see where's the problem
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Again, have you set breakpoints ? What code is running ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Muammar© wrote: OracleConnection oraCONNECTION;
OracleDataAdapter oraADAPTER;
Just out of curiosity. What components/providers are you using to connect to your Oracle DB?
|
|
|
|
|
blackjack2150 wrote: components/providers
I think I'm just using .Net regular classes
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
You're right. I've never used Oracle with .NET before and I didn't know these classes even existed. Nice surprise. I remember one guy's signature who compared .NET with a box of never ending treasures.
|
|
|
|
|
Hi.
I'm in the progress of making a messenger client that uses the dotmsn library, I figured it would be a good idea to make the application plugin aware, so I started some research on the subject.
What I have come up with so far is that the .NET 3.5 framework contains a plugin architecture that sound like it's the best choice for me, but I have some questions about the way the plugin architecture is supposed to work.
1) How do i expose events and custom classes from the dotmsn library without forcing the plugin developer to include the dotmsn library in his project? I figure this would be impossible, but i ask anyway.
2) When developing my application plugin API (My exposed functionality to the plugin developers), do i create a wrapper that contains some events like Message_Received, that i call from my application, or do i just expose the existing events from the dotmsn library. (Literally building a plugin architecture to the dotmsn library instead of my client).
Anyone that can shed some light on this subject is welcome. I have btw read all articles on the subject here on codeproject.com.
Thanks!
|
|
|
|
|
Can any one point me to a tutorial on how to catch the stand by/Hibernate event on windows application.
Regards
Shajeel
|
|
|
|
|
|
|
np
|
|
|
|
|
xmldocument is resource consuming but i have to use XPathNavigator how can i use it with xmlTextReader.
If I use some thing like this
XmlTextReader reader = new XmlTextReader(strUrl);
XmlDocument xdoc= new XmlDocument();
xdoc.Load(reader);
reader.Close();
will it still consume resource.
I just want To use XPathNavigator with out using too much of resource my xml file can be upto 3-4mb. plz do help me
|
|
|
|
|
Wow!!
Justin Timberlake has had enough with music and now he's trying to cut it as a programmer.
|
|
|
|
|
I think coding is far more interesting than music..
|
|
|
|
|
How is using XmlDocument resource consuming? You mean execution time, memory usage or what else?
|
|
|
|
|
http://www.codeproject.com/soap/myXPath.asp
plz read point of interest
|
|
|
|
|
http://www.codeproject.com/soap/myXPath.asp
scroll down and plz read point of interest
|
|
|
|
|
Scroll down to the bottom of the page, at the Reference section. Follow the link that says "Improving XML performance". That article deals with many things starting with X, including XPath:
If your application contains large amounts of intensive XPath or XSLT code, use XPathDocument, instead of XmlDataDocument or XmlDocument, to process XPath statements.
In your case, with the 3-4 MB files I don't think you have to worry about performance.
|
|
|
|
|
thanx for the suggestion really appreciated that but i got it wrong my xml file can be 30-40mb will it still work. so what if i have to scan a file withing a minute
|
|
|
|
|
|
matjame wrote: Im as amature in this
I am amazed at how many people are writing code, presumably for money, and are posting questions that say 'I am an amateur', or 'I don't know C#'
The webbrowser control can be embedded on your page, and it can show a html file, either locally or from the web. You cannot use CSS to style a form, they are completely different beasts.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hai everyone!
Am new to this field(C#, ASP.net)!
Am working good in VB!
Can any one tell me the links abt the basics of C#.Net(For a web application)! i want detailed explanations! Help this fresher!
-- modified at 6:25 Monday 4th June, 2007
As am i fresher i know the basice concepts and overall idea about the software development! now am going to join a firm! so i want to learn all!
so please refer me some sites to learn from the basics in ASP.Net with C#
|
|
|
|
|
www.buyabook.com
www.thereisanASP.NETforum.com
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
www.GoogleIt.com
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|