Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
Casting Rows and Columns to DataRows and DataColumns
posted

Hello all,

Can the UltraGrid rows collection be cast to a DataRowCollection or some other list of DataRows or DataRowViews? Similarly, can the UltraGrid columns collection be cast to a DataColumnCollection or some other list of DataColumns? Thanks in advance for any ideas and/or suggestions!

Parents
No Data
Reply
  • 17259
    Verified Answer
    Offline posted

    If I understood you, each row datasource is a DataRow (or DataRowView).

    grid.Rows.OfType<UltraGridRow>().Select(r => (DataRow)r.ListObject).ToArray()

Children