Renju Vinod
Renju Vinod

Reputation: 254

How to change column type of a devExpress xtra Grid Control to CheckBox type column?

In .net grid view Control Column we have a Property called "ColumnType" where we can specify column type which you want

enter image description here

Any body please help me how to do this in DevExpress Extra Grid Control

Thanks in advance

Upvotes: 2

Views: 14630

Answers (2)

Curley Muzo
Curley Muzo

Reputation: 31

Dim checkEditColumn = New DevExpress.XtraEditors.Repository.RepositoryItemCheckEdit()
checkEditColumn .CheckStyle = DevExpress.XtraEditors.Controls.CheckStyles.Style1
checkEditColumn .Name = "test"
GridView1.Columns("columnName").ColumnEdit = checkEditColumn 

Upvotes: 1

DevExpress Team
DevExpress Team

Reputation: 11376

A similar effect can be achieved by setting the column's ColumnEdit property to an instance of the RepositoryItemCheckEdit. For more details, please refer to the Assigning Editors to Columns and Card Fields topic.

Upvotes: 1

Related Questions