Dataset, Custom Class Property and Control.

  • Thread starter Thread starter Cypher Drive
  • Start date Start date
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.
 
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
 
Cor,

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

Thanks alot,

: < )
 
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.
 
Back
Top