DataGridView Problem

Progress2007

Active member
Joined
Sep 5, 2008
Messages
25
Programming Experience
1-3
Hi All
I have a problem in DataGridView. I have added a DataCouumn in DataGridView. Now i want that if user clicks on a cell then depending on the field type which will come from DB like it can be a combo, DatePicker or List box, the cell should be change.

There is a property in DataGridView like
DataGridView1.Columns.Item(1).CellType.

But it is a readonly property......

Pls tell me how to do this.....?
 
Hello.

The FieldType is defined by the column. You can't change the field type on the fly without removing and reading the column (at least I don't know any way).

Bobby
 
Back
Top