cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix With CheckBox

Former Member
0 Kudos

Hi To All,

I had a matrix in my screen..It contains a Item Column and Choose Column...In that Choose Column in CheckBox column..There is a SelectAll button in my screen..If i click the SelectAll Button all the Checkbox should be checked atonce. But for me, all the checkbox had checked one by one...If i am having minimum number of rows means its ok...If the row exceeds 20 to 25 means, i shd wait till all the checkbox got checked......My need is all my checkbox shd be checked atonce..How to do it...Here is my source....


Case SAPbouiCOM.BoEventTypes.et_CLICK
If pVal.ItemUID = "SelectAll" And pVal.BeforeAction = False Then
For intCount As Integer = 1 To MatMName.VisualRowCount
Try
MatMName.GetLineData(intCount)
MatMName = Conv_Form.Items.Item("MatMName").Specific
MatMName.Columns.Item("Choose").Cells.Item(intCount).Click(SAPbouiCOM.BoCellClickType.ct_Regular)
Catch ex As Exception
End Try
Next
End If

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sridhar,

if you want avoid checking rows one by one , make use of Freeze.

Try

MatMName = Conv_Form.Items.Item("MatMName").Specific

Conv_Form.Freeze(True)

For intCount As Integer = 1 To MatMName.VisualRowCount

MatMName.GetLineData(intCount) MatMName.Columns.Item("Choose").Cells.Item(intCount).Click(SAPbouiCOM.BoCellClickType.ct_Regular)

Next

Conv_Form.Freeze(False)

Conv_Form.Update()

Catch ex As Exception

End Try

Regards,

Ganesh K

Former Member
0 Kudos

Thanks Ganesh its worked fine....And also, thanks to jane jing...

Former Member
0 Kudos

Hi Sridhar,

Glad to see..

Regards,

Ganesh K

Former Member
0 Kudos

hi Ganesh

i also copied your code but for me it seems it is pretty slow, it takes a bit less than 2 second to check 30 checkboxes, i dont think that is acceptable for the user. If i was the user i would be clicking select all every 0.2 secs and get mad

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Sridhar R Badri,

You could try to set the Checked property as Ture of the CheckBox:

oCheckBox.Checked = True

Best Regards

Jane Jing

SAP Business One Forums team

Former Member
0 Kudos

Thanks for ur response......I am having checkbox column in matrix..How to change the property to true......?