locked
How do I get current LINQ Datasource field value RRS feed

  • Question

  • User640994953 posted

    Hello,

    I want to put into a text box the value from the current row of a linq datasource.  If I have it hooked up to a grid, I can go to that cell and pull it out but rather than have it in a grid I want it straight to a text box.

    How do I get at a column value for the current row?  For example:

    StartDate = CDate(gvCerts.SelectedRow.Cells(2).Text) <<< this sets startDate to the grid cell value that is connected to my linq datasource.

    What would I do to hook a text box up directly, say something like (but I know this isn't it):

    Textbox1.text = LinqDataSource1.whateverTheCurrentRowIs.Field("StartDate")

    Tuesday, June 4, 2013 9:15 PM

Answers