Click here to Skip to main content
15,917,059 members

Comments by Member 10425037 (Top 5 by date)

Member 10425037 13-Jul-15 19:09pm View    
It seems that you are right , when i try to run the foreach loop that i wrote up, to check if ther is data there are no Data in the DataSet.
I think the issue is that i fill the dataset in form1 , than when i call it in the form2 it deletes all the data stored in the dataset.
How can achieve this ... :(
Member 10425037 12-Jul-15 13:39pm View    
Still not working , it doesnt show me anything , just the header of the table with the columns , and nothing more below the header is blank
Member 10425037 12-Jul-15 13:27pm View    
Btw. i tryed this code to ensure myself that data inside datatable is stored and ti works,

foreach (DataTable table in ds.Tables)
{
MessageBox.Show(table.ToString());
foreach (DataRow row in table.Rows)
{
MessageBox.Show(row.ToString());
foreach (DataColumn column in table.Columns)
{
object item = row[column];
// read column and item
MessageBox.Show(item.ToString());
}
}
}
Member 10425037 12-Jul-15 13:25pm View    
I will try accept Changes, now and will tell you the response
Member 10425037 12-Jul-15 13:10pm View    
I dont assign the data table , because , i created the DataTable in the DataSet manually
(Righclick in dataset ADD -> DataTable and created the fields that i need, because otherwise i cant selct the fields in the RDLC report )