Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a user defined fuction.when i load my datatable using a stored procedure i bind it in a grid.

I wanna take a colomn value like name and pass it to call the fuction and update the datatable with the return value.
Or
i wanna bind it to grid. Or after binding to a grid can i call the function thenupdate the grid view help.
Datatable in side foreach loop setfeild and feild property not working. Need code in c# asp.net

What I have tried:

Foreach datarow dr in dt.rows
String str = dr.feild<string> (uname);
Str1 = loadname(str);
Dr.setfeild<string>(uname,str)
Dt.acceptchanges();
Posted
Updated 26-Jul-20 8:14am

1 solution

Str1 not str in setfeild line
 
Share this answer
 
Comments
Richard Deeming 27-Jul-20 12:55pm    
If you want to update your question to add missing information, click the green "Improve question" link and edit your question.

Do not post your update as a "solution" to your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900