Results 1 to 3 of 3

Thread: How do I set the data source for BlazorTable to a DataTable

  1. #1

    Thread Starter
    Lively Member Brian Henry's Avatar
    Join Date
    Oct 2005
    Posts
    94

    How do I set the data source for BlazorTable to a DataTable

    Thanks.
    Last edited by Brian Henry; Jun 14th, 2020 at 09:07 PM.
    Brian Henry
    Visual Studio 2001 to 2019
    Java/Android
    ISaGRAF

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    106,932

    Re: How do I set the data source for BlazorTable to a DataTable

    You've just copied the example code. You haven't actually made an attempt to use a DataTable there. Have you given any thought to what TableItem, Items and Field actually mean? If you have looked at the example then you should have seen that TableItem is the type that contains the data for an item, Items is the field that contains a list of those table items and Field is a Lambda that gets the field value from the item.

  3. #3

    Re: How do I set the data source for BlazorTable to a DataTable

    Hii Brain Henry,

    You should convert first DataSource in BindingSource,

    Code:
    BindingSource bs = (BindingSource)dgrid.DataSource;
    DataTable tCxC = (DataTable) bs.DataSource;
    With the data of tCxC you can do anything.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width