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
410
how to bound datatable to datasource in wingrid
posted

hi

in my project i am using wingrid in a method i am returning datatable . i want to bind that table to datasource how can i do ????

 

i want like i want to bind the the datasource to datatable if possible send code to bind datatable to datasource

 

  • 4940
    Verified Answer
    Offline posted

    Are you trying to ask how you bind the DataTable to the WinGrid? If this is what you're looking for you can easily do that by using the line of code below:

    this.ultraGrid1.DataSource = YourDataTableMethod();

    YourDataTableMethod would return to the DataTable that would get assigned to the DataSource property.

  • 469350
    Offline posted

    Hi Ravi,

    I'm afraid I do not understand your question.

    To bind the grid to a data source, you simply set the DataSource and possibly the DataMember property of the grid. To set both at once, you should use the SetDataBinding method.