I have a Windows application in which I am using Janus GRidEx for displaying data. In this Janus Grid I have a checkbox column.
I want a functionality if user selects checkbox for particular row(s) and then hit delete button, the data should get deleted.
For this I am using GetCheckedRows method to retrieve all checked rows.
This method returns an array of Janus.Windows.GridEX.GridEXRow.
I want to convert this array into datarow array or dataset.
How can I acheive this?
Expand|Select|Wrap|Line Numbers
- Dim drCollection() As Janus.Windows.GridEX.GridEXRow
- Dim drRowCollection As DataRowCollection
- Dim drRows() As DataRow
- Dim DtRow As DataRow = Nothing
- Dim iCount As Integer
- drCollection = grdList.GetCheckedRows()
- 'For iCount = 0 To drCollection.Length - 1
- 'DtRow = CType(drCollection(iCount).DataRow, DataRowView).Row
- 'drRows(iCount) = DtRow
- 'drRowCollection.Add(DataRow) ' I am getting error on this line
- 'Next