The Complete Project Source Code Platform

Kashipara.com is a community of ONE million programmers and students, Just like you, Helping each other.Join them. It only takes a minute: Sign Up

Job Resume Template

unable to cast object of type 'system.int32' to type 'system.string'

  ckmahdi    2020-06-18 08:40:28

0

0


for (indx = 0; indx <= Dt.Rows.Count - 1; indx++) { ListViewItem lv = new ListViewItem(); lv.Text = (string) (Dt.Rows[indx]["ID"]); lv.SubItems.Add(Dt.Rows[indx]["RoomNumber"].ToString()); lv.SubItems.Add(Dt.Rows[indx]["RoomType"].ToString()); lv.SubItems.Add(Dt.Rows[indx]["RoomRate"].ToString()); lv.SubItems.Add(Dt.Rows[indx]["NoOfOccupancy"].ToString()); lvRoom.Items.Add(lv); }

Answers

Post Your answer