datasource

When i change the datasource on My datagrid the columns dont autofill unless i order a column

I have a DataGrid on a Win Form that display perfectly when I initially set the datasource. The AutoSizeColumnsMode is "DisplayCells". When I change the datasource during runtime the rows do not autosize unless I re-order a column. Does anyone know how to fix this? Also note that the DataGrid is on a different Tab than the button that ca...

Is it possible to create datasources dynamically in Tomcat 6 without redeploying web application?

I need to create databases on the fly in my web application. So I need to create datasources for new databases. Is it possible to create datasource in Tomcat 6 without need to redeploy web application every time new datasource is created? ...

SQL stored procedure equivalent to ODS e.InputParamters[] = x ?

Morning all, hope everyone is ok. I have an ODS that uses a combination of query string and Selecting event parameters. For the ODS, I'd input a paramater in the selection event a la: protected void oDs_Selecting(object sender, ObjectDataSourceSelectingEventArgs e) { e.InputParameters["memberid"] = memberid; } How w...

One DataSource with two tables for two grids

I calculate (Create from some queries) first table in my DataSource Select method then I need to make some basic calculation (statistics of first table, like summ for columns) with this table and create second table for second Grid, so how can I provide single calculation for two Grids ? Thank you. ...

Regarding sharepoint and SQL data store

Hi There, I have to create a web form and store all kinds of data from the page, the data will be text, num, email and checkboxes. I have to store them in a database SQL. I have to deploy the same page in the sharepoint server and users will be able to use that page to fillin the details once the details are filled in it should be load...

WPF and Datasets: How do I get the SQLConnection.DataSource from TableAdapterManager.Connection?

My VB WPF app is using strongly typed datasets. The connection string is set in the app.config file and is changed via the application settings designer gui. During development I connect to the test database on another server. I want a screen indicator to make it clear that the app is connected to test data. I know I could parse the co...

UITableView loads data too early... or too late

I have a UITableView that changes its data very often. (It's just NSStrings, stored in an NSArray.) Method 1> [self loadMyArray]; Method 2> [myTable reloadData]; Where would I put those 2 methods... so they get called EVERY time the view is displayed? I assume some likely places would be: viewWillLoad viewDidLoad viewWillAppear vie...

Excel formatting option

Im copying in data to a cell, when I copy it, the source info is this. 1000486818242033 it copies as this. 1.00949e+14 When i convert to number or text to columns it changes to this 1000486818242030 How can I fix that? ...

Dashcode: changing parameter of datasource does not work in Chrome

Hello, If I run the following code in runtime: var scheduleFromTo = dashcode.getDataSource("scheduleFromTo"); scheduleFromTo.setValueForKeyPath(102, "parameters.fromStationNumber"); scheduleFromTo.setValueForKeyPath(103, "parameters.toStationNumber"); it works as expected in Safari, Firefox, Opera and even IE7, but not in Google Chro...

Hibernate - Connection not closed in connection pool

I am using org.apache.commons.dbcp.BasicDataSource and I want to monitor the UNCLOSED connections. What properties i have to set in hibernate config file? Thanks. Giovanni ...

Reloading Domain Datasource

I am using an export utility to to export the contents of a datagrid in csv format. When the page loads the grids load all data. The grids have datapagers. When the user filter's, I want to be able to export the data using a click event. I have a grid in the background that I am loading on the click event then exporting the conte...

iPhone UIPickerview reloadAllComponents does not work

Hi, I have UIPickerView component that receive data from its datasource (NSMutableArray) which is populated from sqlite. When user click on button new data row is added to databse. Now I need to reload UIPickerView to display fresh data from datbase. I know that I need to use method [storedDataPicker reloadAllComponents]; somehow but I ...

Creating XA DataSource to DB2 on JBoss

I trying to configure an XA DB2 DataSource, xa-datasource (based on http://community.jboss.org/wiki/SetUpADB2Datasource) using com.ibm.db2.jcc.DB2XADataSource class (local-tx-datasource works using the com.ibm.db2.jcc.DB2Driver). The target server is DB2 Connect V9.7 Actual xa-datasource config: <xa-datasource> <jndi-name>jdbc/DB2S...

XAML datasource

HI:is any difference on these statements (performance or any other issues) are they both allright? having a datagrid datasource the PhoneNumbers is a collection DataSource="datasource.PhoneNumbers" or DataSource="{Binding Path=PhoneNumbers}" thanks for your help ...

Best way to pass data between objects in iphone development?

I am working on an iphone application and don't know what the best way to hold temporary data across views. for example i have xml on a server and i parse the data into an object so that I can hold the information. The xml has some data that i want to be displayed on one view and other data that i want to be displayed on another view. I ...

Can I use an existing View to query a List when using SPDataSource?

Is there a way to specify the name or id of a lists existing views to filter/sort the data? ...

How to use tnsnames.ora in Grails DataSource?

I'm trying to connect to a load-balanced virtual host specified in tnsnames.ora in my Grails application in DataSource.groovy, with no luck - it (obviously) throws an "Unknown Host Specified" exception. The tnsnames entry looks like this someServiceName = (DESCRIPTION_LIST = (FAILOVER=ON) (LOAD_BALANCE=ON) (DESCRIPTION = ...

Use Google Datasource to import Google Spreadsheets

I am trying to integrate a google spreadsheet into a google visualization using google datasource. The code that I am trying to execute is below. I am not getting an error alert or anything to output from this script. <script type='text/javascript'> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadC...

C# - 2 problems - referencing a cell in DataGridView_RowsAdded causes nullreference error; Cant update database with DataGridView data...

Hey, I just started writing a customer application in C#, using Visual Studio design mode for most of it. Bear in mind I only started learning C# yesterday - so if I am making any stupid mistakes then please say so. What I have so far A database; A DataSet which links to the Customer and Agent tables; A BindingSource which binds to t...

ComboBox doesn't load users.

Hi guys, here's my code: private void LoadUsersToComboBox() { comboBox1.DataSource = null; comboBox1.DataSource = peopleRepo.FindAllPeople(); /*Returns IQueryable<People>*/ comboBox1.DisplayMember = "Name"; comboBox1.ValueMember = "ID"; } private void button2_Click(object sender, EventArgs e) { ...