Help needed with Janus GridEX

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • palmah11@gmail.com

    #1

    Help needed with Janus GridEX

    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.G ridEX.GridEXRow .
    I want to convert this array into datarow array or dataset.
    How can i acheive this.

    Dim drCollection() As Janus.Windows.G ridEX.GridEXRow
    Dim drRowCollection As DataRowCollecti on
    Dim drRows() As DataRow
    Dim DtRow As DataRow = Nothing
    Dim iCount As Integer
    drCollection = grdList.GetChec kedRows()

    'For iCount = 0 To drCollection.Le ngth - 1
    'DtRow = CType(drCollect ion(iCount).Dat aRow, DataRowView).Ro w
    'drRows(iCount) = DtRow
    'drRowCollectio n.Add(DataRow) // I am getting error on this line
    'Next

    thanks

  • Cor Ligthert[MVP]

    #2
    Re: Help needed with Janus GridEX

    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.del ete

    Cor

    <palmah11@gmail .comschreef in bericht
    news:1189521358 .577104.327260@ 22g2000hsm.goog legroups.com...
    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.G ridEX.GridEXRow .
    I want to convert this array into datarow array or dataset.
    How can i acheive this.
    >
    Dim drCollection() As Janus.Windows.G ridEX.GridEXRow
    Dim drRowCollection As DataRowCollecti on
    Dim drRows() As DataRow
    Dim DtRow As DataRow = Nothing
    Dim iCount As Integer
    drCollection = grdList.GetChec kedRows()
    >
    'For iCount = 0 To drCollection.Le ngth - 1
    'DtRow = CType(drCollect ion(iCount).Dat aRow, DataRowView).Ro w
    'drRows(iCount) = DtRow
    'drRowCollectio n.Add(DataRow) // I am getting error on this line
    'Next
    >
    thanks
    >

    Comment

    Working...