honag luc

honag luc

  • NA
  • 123
  • 7.5k

For loop error C#

Mar 16 2023 3:29 PM

i have data table Room{ "Id", "Status", "Sort", "CreatedDate", "CreatedAt", "CreatedBy", "UpdatedAt", "UpdatedBy", "CodeName", "Name",
"LocationId", "Volumn", "Items", "Images" }
on datagridview get display column Room Name and add columns that are hours from 08:00 to 18:00. get the data in the Booking is
start time and end time to compare with the datagridview time columns from 08:00 to 18:00. Add new,data add nomal, but when loading
error data are columns like: Status", "Sort", "CreatedDate", "CreatedAt", "CreatedBy", "UpdatedAt", "UpdatedBy", "CodeName", "Name",
"LocationId", "Volumn", "Items", "Images" are letters that cannot be converted to hours to compare with the column headertext which 
is the hours from 08:00 to 18:00.how when loading the data I only get and browse the columns as the new add column from 08:00 to 18:00, 
not from the fields data in table Room

here error


Answers (2)