Non-invocable member 'System.Data.DataTable.Rows' cannot be used like a method.
  • hi i am trying to get data from datatable column but i am facing this error in c#

    Non-invocable member 'System.Data.DataTable.Rows' cannot be used like a method.

    my code is

                DataTable dt = new DataTable();
                string str = dt.Rows(0)(0).ToString();
  • 1 Comment sorted by
  • use dt.Rows[0][0].ToString();

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

Top Posters Weekly

Optimum Creative