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):
None
0 Points
31 Posts
How do I get current LINQ Datasource field value
Jun 04, 2013 09:15 PM|QEDDave|LINK
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")
Linqdatacontrolsource