load array data to dataset
-
Hi all, I am trying to load data from a array to dataset or any other ways to display the data in a datagridview. if you can please help me in this regard. thanks
You didn't say anything about what type of data or whether you need a DataSet for other reasons, but assuming you just want to display the data and nothing else, just run through a loop and add
DataGridView
rows and put your data in a cell. Simple, but the details of how you do it depend on what language you are using.CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
You didn't say anything about what type of data or whether you need a DataSet for other reasons, but assuming you just want to display the data and nothing else, just run through a loop and add
DataGridView
rows and put your data in a cell. Simple, but the details of how you do it depend on what language you are using.CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
Hello Walt Fair,What I want to do is that I have an array of string, how do I put the array data in a grid view by column and row. thanks
You need to loop through your array of strings and add a new row to your dataset and populate the fields of your new row with your data from the array Example (VB.NET)
For idx As Integer = 0 To myArray.Length -1
Dim row as DataRow = myDataSet.Table(0).NewRow
row(0) = myArray(idx)
myDataSet.Rows.Add(row)
NextSteve Jowett ------------------------- Real programmers don't use PL/1. PL/1 is for insecure momma's boys who can't choose between COBOL and Fortran.