Forms Data Controls :: Creating XY Scatter Plot From DataSet?
Apr 30, 2010
I'm creating a form that sends a data set into an XY scatter plot. I have a report and reportviewer set up correctly, however my chart will not adjust the vertical position of the data points! They're tied to the table below (and have data labels), however when they get plotted they're always right on the x-axis.
I have 150K records of X and Y columns and I am trying to draw a chart for FinanicalFormula. It is taking time to create chart for ever. It is not throwing error also.
Chart1.DataSource = dtChart ' Data bind to the selected data source Chart1.DataBind() Chart1.ChartAreas(0).RecalculateAxesScale()
[Code]....
control is coming out from these all line in debug. after that page taking to load data on the graph.
Codebehind: creating dataset, getting data from sql with adaptor and filling into dataset object, then setting detailsview's datasource. I add 2 button to above template to able to edit data at asp page, and added event handlers:buttons:
[Code]....
My question is, what to do inside the detailsview update event function to able to edit and update data. My method can be wrong too.
This seems like it should be extremely simple. I have a list of x,y cords in SQL table that I am pulling out into a reader. I am then trying to bind my points to a point (have to use it since I can't find scatter) chart control.
Where Xpos = the x cord column and Ypos = the y cord column.The chart generates but my problem is that I am getting multiple x values that are the same. For example I have (67, 45) and (67,54).I would think there would be one x value for 67 with the two points on it, at 45 and at 54.Instead I am getting 2 x values listed, both for 67, one with 45 and one with 54.
Just as a test I listed these values in excel (in 2 columns) and did a scatter plot and it generated what I expected (2 items plotted on the same x value, one above the other. Is there a setting I am missing or does the chart control "Point" not have this capability.
i have created a program which saves login and logout time for a project.there may be more 2 login for a same project.i need to store the total working time for a particular project from all login/logout time.then for the same date there may be more than one entry.Ex:
Project name: Test User name: Login time: Logout time: Total Time: logout-login Date:date of login
this is a format of table in database..more than one user will work for the project.there may more than one entry for a day by different users for same project.i need to put a chart for this table with date in x axis and total working time for that date in y-axis.How to calculate the values for this constraints
when i add a dataset & using wizard trying to set the database using sql authentication.i get error login failed for user sa but if i use windows authentication i get connected.i checked the sql server it has mixed authenticationĀ but still i am not able to create the xsd & supposeĀ i copy the the dataset mad eon other system to this system i am bale to aceess the data in the application but not able to configure or preview data.how do i rectify .
I have a dataset with 3 tables that are inner joined. Thsi dataset is connected to an object datasource which is connected to a gridview. So at runtime it displays data from the database. The problem is when I click on a save button to add information to the database it throughs me an error saying Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. But if i have two tables in my dataset it works 100%. But the problem i need that 3 tables in order to pull the required information. And if i populate the gridview using code to select the information from the database and insert information it also works 100%.
Real simple one here. I'd like to create a table on my Page from a DataSet. It looks like I have it working properly, but what I'd like to do is interpret the columns, as well as be selective with which column to display.
[Code]....
I would like specific columns, by name or position doesnt matter.So if a column is = named column, then addcell and also, the data needs to be interpreted: If value of column = x then response.write("y") In sum, I dont want all the columns, just specific ones, then I was to interpret whats in that cell, and write something.
I'm new to creating reports. I created a report rdlc, and created three report parameters and placed in data region. See the code below
[Code]....
When I build this..I got the error saying "The table 'table1' is in the report body but the report has no data set. Data regions are not allowed in reports without datasets. "
I need to create rdlc without dataset and to bind dataset at runtime.
I am using Linq To Sql to get List of objects with data from database. To bind data with a grid view i am creating a dataset explicitly and then adding List values to that explicitly created dataset.
Now my question is whether it is a good pratice to do what i am doing (in terms of resource utilization) or is there any better way to this...
i have retrieved data from the database and stored in dataset.i have to add an additonal row to it,update the data in data set and delete data from the data set..
i have 103 column in database 1 column is id, 1 is user ,1 datetime, 100 button on webpage 1 textbox to input value , button1 clicked then value in textbox will insert into database with user:=user.identity.nam datetime=datetime.now colum4 will get value from textbox......button2 for colum2 and buton100 for column100, if i use dataset i need 100 datataset, some other way to solve it ??
In my project I work with Entity Framework (LINQ to ENTITY). I only have ADO.NET Entity Data Model and a DAL (Data Access Layer). I also get the data due a WCFClientService. I have a gridview that needed to be exported in Excel.
FlexCel is a tool for generating Excel files based on a template. The only thing I see in demo's is that they work with DataSets.
Is there a way to convert the data in my gridview to a virtual DataSet?
I've written the following method to get the data:
I am using visual web developer express 2010 and have two dropdownlists which are feeding parameters to my detailsview. both are set to appenddatabound "true" because I have added a % value texted " select all" to them. Now, before I added the 'select all' options I was able to configure my detailsview dataset query to bring over data using the AND statement which meant that the two buttons when placed on the same page brought over values to my detailsview where both criteria were present but when I try this when the wildcards are used with the select all option in the dropdownlists the same does not apply.
I have the following code: using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using Oracle.DataAccess.Client; // ODP.NET Oracle managed provider using Oracle.DataAccess.Types;
namespace MyTestApp { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { OracleConnection conn = new OracleConnection("User Id=UID; Password=PWD; Data Source=XE; Pooling=false"); try { conn.Open(); } catch ( OracleException oe ){ Console.WriteLine("ERROR : " + oe.Message); } if ( !Page.IsPostBack ) { if (conn.State == ConnectionState.Open) { // get data GetMoleculesToShow(conn); } } // clean up connection conn.Dispose(); } static void GetMoleculesToShow( OracleConnection conn ){ String division; String rxotc; String molecule_name; String prodnum; String proddesc; String molecule_class; String nonactive; // create command object and set attributes OracleCommand cmd = new OracleCommand("schema.package.procedure", conn); cmd.CommandType = CommandType.StoredProcedure; //Bind values cmd.Parameters.Add("mol_to_show_cur", OracleDbType.RefCursor); cmd.Parameters[0].Direction = ParameterDirection.Output; try { // Execute command, have parameters populated cmd.ExecuteNonQuery(); // Create OracleDataAdapter, data provider object to populate dataset OracleDataAdapter da = new OracleDataAdapter(cmd); //Populate dataset with "molrefcur" DataSet ds = new DataSet(); da.Fill(ds, "mol_to_show_cur", (OracleRefCursor)(cmd.Parameters["mol_to_show_cur"].Value)); //Verify dataset is begin populated //DataTable dt = ds.Tables[0]; //foreach ( DataRow dr in ds.Tables[0].Rows ) //{ // division = dr["division"].ToString(); // rxotc = dr["rxotc"].ToString(); // molecule_name = dr["molecule_name"].ToString(); // prodnum = dr["prodnum"].ToString(); // proddesc = dr["proddesc"].ToString(); // molecule_class = dr["molecule_class"].ToString(); // nonactive = dr["nonactive"].ToString(); //} if (ds.Tables[0].Rows.Count != 0) { // display dataset values GridView gvMolecules = new GridView(); gvMolecules.DataSource = ds.Tables["mol_to_show_cur"].Rows; gvMolecules.DataBind(); } } catch (OracleException oe) { Console.WriteLine("ERROR : " + oe.Message); } finally { cmd.Dispose(); } } } }
The dataset is being populated, however when the page renders, the data nor the gridview are visible. I have tried using both IE and Firefox, binding / not binding the columns, AutoGenerateColumns Y / N with no success. As I am new to all of this ( VS2008, ASP.NET, C# ) I can't help but to think I am overlooking something basic.
I am using the following : - VS 2008 - MS Vista SP2 - Oracle XE ( local )
I was searching for my problem for last couple of days. But coudn't find a better solution. So here I go again. What I did which worked great: I was going to a asp page with pre populated Dataset (dataset is already loaded with data), for a GridView. If I do the following .... the GridView shows all the data (with the fields Dataset comes with).
[Code]....
Now what I am trying to do: I am trying to do exact same thing but instead of using GridView, I would like to display data in a FormView. So now I tried to do this
[Code]....
PROBLEM: I can see the FormView Header with text "Test Dataset With FormView" and below the Header it displays the page numbers. I know that I have 3 data in the data set and I can see 3 page link in the FormView. But PROBLEM is it doesn't display any Field / Data. Not sure why it is doing this
Note that I wouldn't know what field to display in the FormView. Whatever I have in the Dataset I need to display. Is there any work around to accomlish my work (maybe by not using a FormView, but other conrol ?). My original goal is to Display Data in a Form View Format (One data at a time