Click here to Skip to main content
15,921,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi experts
i have a DataView ,
i need to get data from dataview one by one.
how can i do it?
Posted

1 solution

//filter the dataview
dvRooms.RowFilter = string.Format("VenueTypeID = {0}", VenueI.VenueTypeID);
//Loop through each row
foreach (DataRowView drV in dvRooms)
{
  string sValue = drV["FieldName"];
}


or you can use a for loop and get drV[rowindex][columnindex]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900