cancel
Showing results for 
Search instead for 
Did you mean: 

How to add CheckBox To Grid

Former Member
0 Kudos

Hi all,

How to add checkbox Column to Grid?

I have a grid and I assigned a datatable with two columns. I want to add a checkbox column to grid that user select/deselect.

Any help appreciated!

with Regards

B.Ravi Shankar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ravi,

You should do something like this:


' To change the column type
oGrid.Columns.Item("ColumnName").Type = SAPbouiCOM.BoGridColumnType.gct_CheckBox
' To get a reference of the column
oCheckBoxColumn = oGrid.Columns.Item("ColumnName")

Hope this helps,

Ian

Former Member
0 Kudos

Hi Ian,

Thanks a lot and it works.

With Regards

B.Ravi Shankar

Former Member
0 Kudos

Hi Ravi.

You're welcome. For marking the message as answered, please select the radio button "Solved problem".

Regards,

Ian

Answers (0)