Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8538

How Do i select Row Index.

$
0
0

Hi Experts,

 

i have a situation where i have grid with check boxes in first column.

 

user have to select only one check box among all the columns,

i.e., if he checks the check box in 4th row and again checked another box in 10th row or 1st row the box selected in 4th row has to be deselected and recently checked check box have to retain its selection.

 

i've tried the following, it isn't working

 

For i = 0 To dtDlvDocs.Rows.Count - 1

                            oDlvDocsMatrix = oForm.Items.Item("mtxDlvDocs").Specific

                            oCheckBox = oDlvDocsMatrix.Columns.Item("V_Select").Cells.Item(i + 1).Specific

                            If oCheckBox.Checked = True Then

                           

                                iChkCount = iChkCount + 1

                                If iChkCount > 1 Then

                                    oCheckBox.Checked = False

                                    oSBOApp.MessageBox("Only one PickList can be selected at a time")

                                End If

 

                            End If

                        Next

 

please help me with code in achieving this

 

and please do help me how to find out the row number (or) row index of selected row/row in which 'check box' is checked.

 

Thankyou

 

kishore.


Viewing all articles
Browse latest Browse all 8538

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>