private void cmdGetTrades_Click(object sender, EventArgs e)
dsXML.Clear(); // should already be defined else define it here
// allowing user to select file else you can directly hard
// code the file name
openFileDialog1.Filter = "XML Files|*.xml";
openFileDialog1.Title = "Select SWAPs trades' XML file";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
grdTrades.AutoGenerateColumns = true;
grdTrades.DataSource = dsXML;
grdTrades.DataMember = "trade";
I am using this so it certainly works! Hope that helps you.
You can fill a dataset using your SP and pass it to your app.
First learn about how to fill in a dataset using SPs.
And then, move towards learning how to pass this dataset and a parameter to your report.
In my window application I have a ListView which is populated with the list of websites. I would like to be able to load these website once the item in the ListView is clicked. I have set everying reagarding the ListView but I have no clue how to load the website once the item is clicked.
Can someone be kind enough to tell me what code do I need to use for this? I have no clue what so ever for doing so. I have load at the linklable component, but that is not what I am looking for.
thanx very much for all your help. you saved mt life, mate. There is one question which I have regarding the website loading. this is exactly what I need but this process opens the website in a New Explorer window. Is there any way I can open the website in a designated area in my window application?
I have a windows application with a tabControl. The tabControl has got 4 pages. I have a click event which I would like as the result the 4th page of my tabControl with index of "Zero" to be appeared just as if I have clicked on the Tab of the 4th page. Currently I can only get into the first page of the cabControl using the following code:
this.tabControl1.SelectedIndex = 0;
Could you tell me how I can make it jump to the page4 of the tab control?
Thank you so much for your help and have a great day.
I’m using webbrowser control in an application I’m developing. It works great accept the view will not update while I’m executing my application. When my application halts the web page imminently updates.
I tried using Application.DoEvents(). It worked with a stand-alone application, but when I integrated into my main application, it caused my code to re-enter at the call point to the webbrowser method. I have tried hard to get it to work without success.
So is there are command or set of C# commands to get a webbrowser object to continue? Paint? Generally update while I’m working? Without DoEvents?