none
datacntext member with auto return type problem. RRS feed

  • Question

  • Hi,

    i have a datacontext that has a function mapped to a stored procedure which is being used as a datasource to a grid.The code is as follows:

    MyDataContext db = new MyDataContext(AppSettings.ConnectionString);

    grid.DataSource = db.SchoolGroup_ReadAll();
    grid.DataBind();


    now if I wanna access a particular record returned by the above function based on the index number of the row clicked in the grid,can I use linq to do that.? If yes then how.? I wanna use the same function for accessing the desired row.
    Wednesday, February 4, 2009 12:22 PM