"Morten Wennevik" <(E-Mail Removed)> schrieb im Newsbeitrag
news

p.sxckyllzklbvpo@stone...
<snip>
> 2) No equivalent, you need to set all properties individually
>
> DataSetThoughtsForm1.tblYourThoughts(0).ProfileID =
> (int)Session["UserID"];
> DataSetThoughtsForm1.tblYourThoughts(0).ThoughtName = txtThoughtName.Text;
> DataSetThoughtsForm1.tblYourThoughts(0).ThoughtText = txtThoughtText.Text;
>
<snip>
Better is:
tblYourThoughtsRow row = DataSetThoughtsForm1.tblYourThoughts[0];
row.ProfileID = (int)Session["UserID"];
row.ThoughtName = txtThoughtName.Text;
row.ThoughtText = txtThoughtText.Text;
where tblYourThoughtsRow is the type of
DataSetThoughtsForm1.tblYourThought[0].