Help needed with Janus GridEX

P

palmah11

Hi,
I have a Windows Application in which i am using Janus GRidEx for
displying data. In this Janus Grid i have a check box column.
i want a functionality if user selects checkbox for particula row(s)
and then hit delete button, the dat should get deleted.
For this i am using GetCheckedRows method to retrieve all checked
rows.
This method return an array of Janus.Windows.GridEX.GridEXRow.
I want to convert this array into datarow array or dataset.
How can i acheive this.

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

thanks
 
C

Cor Ligthert[MVP]

Hi palmah,

In my idea you are in the right direction. Be aware that you have in an
array or collection as the datarow collection always to do the deletes from
bottom up.

You are already using the right conversion because the janus grid is giving
back a datarowview while janus calls that a datarow.

The delete is just a yourDataRow.delete

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top