datasource

is there such list control in c++

I am using MFC. I need a control just like listControl, it has such functions: MyListControl mylistControl = new MyListControl(); mylistControl.setDataSource(...); mylistControl.setSQLStatement("select a, b, c, d from table where a > 3"); and system will have a listControl which is populated with the data from database, and generate t...

Server Tags in DataSource

Is Possible to put some server tag in Session Field to access a constant string??? <asp:EntityDataSource ID="EntityDataSourceProcesos" runat="server" ConnectionString="name=Entities" DefaultContainerName="Entities" EntitySetName="PROCESO" EntityTypeFilter="PROCESO" Select="it.[DE_PROC], it.[ID_PROC], it.[ST_PROC]" Where...

How do I manually configure a DataSource in Java?

I'm trying to follow Sun's JDBC tutorial at http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html It gives the following example code: DataSource ds = (DataSource) org.apache.derby.jdbc.ClientDataSource() ds.setPort(1527); ds.setHost("localhost"); ds.setUser("APP") ds.setPassword("APP"); Connection con = ds.getConnection...

Change item sortorder in gridview - LINQToSQL

Hi, I've got a gridview with a list of categories. In the database (MSSQL2008), the category table has a SortOrder(INT) NULL field. Currently categories are retrieved using: Galleries.DataSource = From G In DB.GalleryCategories Order By G.SortOrder, G.Name Now, what I need to be able to do is add "Move Up" and "Move Down" buttons to...

Can I configure Grails with no datasource?

I have a Grails app that loads its data from xml files and delivers rss feeds via rome. I don't have any domain classes and my app has no datasource. I don't want Grails to load an in memory hsql db when the application has no need for it. Deleting the DataSource.groovy file prevents me from launching the web app, it seems as though the ...

c#, Set datagridview column format after datasource has been set

hi, i have a datagridview that i have populated programmatically and i was wondering how i can make one of the columns conform to a specified format - "C2". Can this be done after the datasource has been assigned? Cheers. ...

Extending Microsoft.VisualStudio.TestTools.DataSource.XML

I'm writing data driven unit tests using an Xml datasource in C# VS2008. Attributes look something like this and everything works awesomely. [DeploymentItem("HtmlSchemaUrls.xml")] [DataSource("DataSource", "Microsoft.VisualStudio.TestTools.DataSource.XML", "|DataDirectory|\\HtmlSchemaUrls.xml", Microsoft.VisualStudio.TestTools....

Setting the Datasource for ComboBoxes in cels in Silverlight DataGrid

I've got a gridview where the collums binds its data to the Datagrid.DataContext in Page_Loaded: private void Shema_Loaded(object sender, RoutedEventArgs e) { GridName.DataContext = AllPdiLines; } I want a grid where one of the cels in every line contains acombobox with selectable values which then binds to the datagri...

access denied when trying to connect to mysql using tomcat datasource

I'm trying to connect locally to mysql 5 server in jsp page using tomcat 6 and datasource. I've configured everything as in the tomcat manual (web.xml, context.xml, etc.), but I get this exception: java.net.SocketException: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve) ...

C#/.NET how to highlight certain rows in DataGridView

hello, i have a datagridview that is filled by setting its DataSource to a DataBinding. now i want that certain rows in the datagridview have a different backgroundcolor according to some value in the row itself. how can i accomplish this easily? thanks! ...

Get data from sql datasource into asp.net controls

I have a sqldatasource with a very simple select statement that should always return one row. I have textboxes on a page that i want to fill with that data from the datasource. how could i do this for textboxes? If there is no data in the database then i want the textboxes to remain empty. How can I accomplish this? <asp:Panel ID = "Pan...

LINQ and ComboBox DataSource issue

How far is the code for best functionallity? I have two ComboBox, so the first is related for choose the company, and the second for choose the branch-office in relation with the one. I note that the only way I can fill datasource with filtering .Where on LINQ is on this way, maybe Im wrong please take a moment for look the following sn...

Using a DataSource with a TextBox

I normally program in C++, so all this DataSource/DataSet/Binding stuff is confusing the hell out of me. Hopefully you guys can help. Basically I'm writing an editor for an XML-based file format (specifically, OFX, for financial data). I've used xsd.exe on my schema to deserialise loaded files into nice, plain old classes. I discovered ...

IListSource and ToString() with DataSource

First I have a Listbox and set the DataSource to a MyObjectCollection MyObjectCollection implements the Interface IListSource wich contains MyObject's MyObject has the method public override string ToString() { return "test"; } The Listbox now displays "test" for each element in the MyObjectCollection. But if I apply the IListS...

DataGridView - adding to DataSource doesn't reflect changes in the control

I have a DataGridView with its DataSource set to a List. When I Add to that list, the change isn't picked up by the DataGridView. The exact code for initialisation is: dataGridView1.DataSource = document.m_statement.BANKMSGSRSV1.STMTTRNRS.STMTRS.BANKTRANLIST.STMTTRN; dataGridView1.AllowUserToAddRows = true; dataGridView1.AllowUserToDele...

Error trying to rebind DataSource to DataGridViewComboBoxCell?

I have a DataGridView with two DataGridViewComboBoxColumns. I want to use the selected item in the first column to trigger a re-population of the items in the second column, on a per-row basis. Here's the code I have so far. "addlInfoParentCat" identifies the first column, and currentRow.Cells.Item(1) is the DataGridViewComboBoxCell t...

WCF Service Reference .datasource files

What are the .datasource files that are automatically generated by "Create Service Reference" in Visual Studio? The comment in the file is this: This file is automatically generated by Visual Studio .Net. It is used to store generic object data source configuration information. Renaming the file extension or editing the conte...

Change a Dictionary key off a UITableView

I have a simple UITableView (with 1 section), my dataSource is a NSMutableArray of NSMutableDictionaries. I'm trying to change the value of one of the keys inside a dictionnary, but I'm getting the "mutable method sent to immutable object". [[mutableArray objectAtIndex:0] setValue:@"hello" forKey:@"test"]; Like I said, both the array ...

Groovy: How to access to the values already set in DataSource

Hi! I have a groovy application which is using an Oracle DB as DataSource. In DataSource.groovy I've set: dataSource { pooled = true driverClassName = "oracle.jdbc.driver.OracleDriver" username = "scott" password = "tiger //loggingSql = true } For some performance reasons at some points I am accesing the DB using sql in the followin...

How to make an existing object a data source in Microsoft Expression Bend 3?

This example is just for learning ... I have started a project in Visual Studio C#. It is very simple, there is a Phone class which is instantiated in the code behind. I would like to add the GUI using Blend 3. public class Phone:DependencyObject { public string PhoneMake { get { return (string)GetValue(PhoneMak...