4
Answers

how to insert many rows in datagridview

firas shaar

firas shaar

10y
592
1
I have two tables
first is called employees table and the other one is worktimes table
employee_id column is primary key in employees table and foreign key in worktimes table
when button_click event
everyday I want to insert all employees names cloumn in employees table
to worktimes table programtically in datagridview
I have 80 employee name
Answers (4)
1
Jignesh Trivedi

Jignesh Trivedi

NA 61k 14.2m 10y
hi,

This is nothing but JSON string object. you can convert it to the object using System.Web.Script.Serialization.JavaScriptSerializer class.

like

string json = "[{\"url\":\"https://www.filepicker.io/api/file/xyz\",\"filename\":\"image.jpg\",\"mimetype\":\"image/jpeg\",\"size\":10006,\"isWriteable\":true},{\"url\":\"https://www.filepicker.io/api/file/lmn\",\"filename\":\"image2.jpg\",\"mimetype\":\"image/jpeg\",\"size\":45998,\"isWriteable\":true},{\"url\":\"https://www.filepicker.io/api/file/stu\",\"filename\":\"image3.jpg\",\"mimetype\":\"image/jpeg\",\"size\":98071,\"isWriteable\":true}]";
var objects = new JavaScriptSerializer().Deserialize<dynamic>(json);

string url = objects[0]["url"];

hope this will help you.
Accepted
0
piya p

piya p

NA 84 31.6k 10y
Hey thank you very much its working properly..

0
piya p

piya p

NA 84 31.6k 10y
"[{\"url\":\"https://www.filepicker.io/api/file/xyz\",\"filename\":\"image.jpg\",\"mimetype\":\"image/jpeg\",\"size\":10006,\"isWriteable\":true},
{\"url\":\"https://www.filepicker.io/api/file/lmn\",\"filename\":\"image2.jpg\",\"mimetype\":\"image/jpeg\",\"size\":45998,\"isWriteable\":true},
{\"url\":\"https://www.filepicker.io/api/file/stu\",\"filename\":\"image3.jpg\",\"mimetype\":\"image/jpeg\",\"size\":98071,\"isWriteable\":true}]"

are my urls
0
Jignesh Trivedi

Jignesh Trivedi

NA 61k 14.2m 10y
hi,

Is there any separator between all urls?
can you please share url string what you get from youtube what is your expected result?