Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Grid Tech Support » tried using databoundgrid, but doesn't work Collapse All
Subject Author Date
John Wong Jun 23, 2007 - 9:39 PM


Hi,

I tried using this example from the elegant grid documentation, but it doesn’t seem to work. I get a blank grid, but I’m
not too sure why. I know the dataset is being populated because when I read out the dataset columns, they come
out correctly.


[C#]
using System.Data;
using System.Data.OleDb;
using Elegant.Grid;

OleDbConnection oleDbConnection =
new OleDbConnection("...connection string...");
OleDbCommand oleDbSelectCommand =
new OleDbCommand("SELECT * FROM Contact", oleDbConnection);

OleDbDataAdapter dataAdapter = new OleDbDataAdapter();
dataAdapter.SelectCommand = oleDbSelectCommand;

DataSet dataSet = new DataSet("Contact");

private void Form1_Load(object sender, System.EventArgs e)
{
boundGridControl1.DataSource = dataSet ;
boundGridControl1.DataMember = "Contact";
dataAdapter.Fill(dataSet);
}

John Wong Jun 26, 2007 - 7:31 PM


Hi,

How do I send the project to you? Thanks!


Technical Support Jun 27, 2007 - 12:07 PM

Please send it to support@prof-uis.com.

Technical Support Jun 25, 2007 - 3:43 AM

Your code looks OK. Please send us your test project so we can check it.