Dataset, Custom Class Property and Control.

C

Cypher Drive

Dear All,

Is it possible to bind a gridcontrol, textbox to a
cutomized class and Dataset

Ex.

Class Employee
Property Name
Property Address

Bind to a grid control and textbox on a Form

Form 1
DatagridView
Textbox

Dataset
Name
Address

How can I accomplish this using Visual Studio 2005?

Regards,

Cyp Drv.
 
C

Cor Ligthert[MVP]

Cypher Drive,

As you are writing in your own definitions, then it is hard to answer you.

Just call a DataGridView a DataGridView and not something as a grid control
and make a puzzle to find out in your symbolic code that the grid Control
means a DataGridView.

At that point I stop and think as long as he did not take the time to
describe the problem well, then it has no sence to answer because he won't
understand that.

However have a look at our pages, which is full of solutions for your
problem.

http://www.vb-tips.com/dbpages.aspx?IA=DG2

Cor
 
C

Cypher Drive

Cor,

I believe you are right. Sorry :< (.
You're sometimes discouraging but you do make my day bright.

Thanks alot,

: < )
 
P

pintu

Hi.
Yes, you can bind the custom object to a datagrid. Just specify it as
datasource and call databind method. Every property in that object
having public keyword (Only property) can be used by databinder method
treating it as column.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top