Sven's profileWebSmitSpacePhotosBlogListsMore ![]() | Help |
|
May 04 WPF: Bind Infragistics xamDataGrid to DataSet using Oracle.DataAccessRecently, I tried the first steps with Avalon (WPF). Since I used already the great Infragistics NetAdvantage toolset, I liked to test their new UI Suite "NetAdvantage for WPF" v2007.1. While Data Binding in .NET 3.0 changed, at first I wasn't very successful in binding a DataSet to the xamDataGrid. Finally, I came to the following conclusion:
public void Clicked(object sender, RoutedEventArgs e)
{
//some Code for opening Database-Connection
openOracleConnection();
OracleDataAdapter da = new OracleDataAdapter("SELECT * FROM myTable", myConn);
DataSet ds = new DataSet();
da.Fill(ds, "Table1");
DataTable table = ds.Tables["Table1"];
Binding bind = new Binding();
this.dataGrid1.DataContext = table;
bind.Source = table;
this.dataGrid1.SetBinding(Infragistics.Windows.DataPresenter.XamDataGrid.DataSourceProperty, bind);
}
See Result in attached Image. I'm using Expression Blend 1.0 and VS2005 with the .Net Framework 3.0 Tools for WPF Nov. 2006 CTP, DataAccess is done through ODP.NET 10g R2 (Oracle.DataAccess.dll). Have fun! November 30 Problem: SNTP Timesvc not updating System Time of DeviceRecently, I spent several hours (even days) in configuring the CE embedded SNTP Client to sync with a NTP Time Server. It *never* worked. I have the following entries in registry: [HKEY_LOCAL_MACHINE\Services\TIMESVC] And now, the solution: Look at the small Parameter "AutoUpdate", it should be set to "1" ! That's the clue I've found out. I searched MSDN documentation up and down and this parameter, the most important, is never mentioned. Sven November 15 ..neverending story part IIHehe, as you wouldn't think, and I either that a reinstall could help me -> it did so. I am really able again to open my solution and edit my project. *very great* I had a little problem with a native C++ project but I excluded it from my solution because there is no need any more for this project. Btw.. if you know VNC and you are looking for real nice tool for your mobile device, the you have to look at this URL. This is VNC for mobile devices in native C++, the full source code - imagine! Until soon... Device Platform not found .. neverending storyYesterday, I had a serious problem while opening one of my solutions in Visual Studio 2005 for my actual project.
There were very ugly error messages, for instance
---------------------------
Microsoft Visual Studio --------------------------- Error retrieving information from user datastore. Platform not found. --------------------------- OK --------------------------- Or
---------------------------
Microsoft Visual Studio --------------------------- The project could not be opened because it refers to a device platform that does not exist in your datastore. --------------------------- OK Cancel --------------------------- I found while searching Google this blog entry from Daniel Moth facing nearly the same problem. But the solution didn't work for me. Already tried to talk to Mircosoft yesterday, because we're MSDN subscriber didn't solve anything, just wasting my time.
I just tried to remove and reinstall VS2005.. let's see what happens..
|
|
|