By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,096 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

Help needed with Janus GridEX

P: 1
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
  1. Dim drCollection() As Janus.Windows.GridEX.GridEXRow
  2. Dim drRowCollection As DataRowCollection
  3. Dim drRows() As DataRow
  4. Dim DtRow As DataRow = Nothing
  5. Dim iCount As Integer
  6. drCollection = grdList.GetCheckedRows()
  7. 'For iCount = 0 To drCollection.Length - 1
  8.   'DtRow = CType(drCollection(iCount).DataRow, DataRowView).Row
  9.   'drRows(iCount) = DtRow
  10.   'drRowCollection.Add(DataRow)  '  I am getting error on this line
  11. 'Next
Sep 11 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 8,434
My guess is that DataRow here should be DtRow.
Sep 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.