I have only one column and a figure with only some integer rows I want them to transition to an array so that I can display them in a text box
You can use linux and If you want to divide them by a new row: string .Join :
int [] nums = table.AsEnumerable (). Select (r = & gt; r.Field & lt; int & gt; (0)). ToArray (); TextBoxNums.Text = string.Join (",", nums);
string [] nums = table.AsEnumerable (). Select (r = & gt; r .Field & LT; Integer & gt ;. (0) .ToString ()) toArray (); Text Boxes. Lines = nums;
No comments:
Post a Comment