Hi, I am trying to get value from specific row range.
This is the code i tried but not sure where should i use the variable rows.
- var rows = dt.AsEnumerable().Skip(0).Take(15);
- string value = "CB123";
- DataRow[] result = dt.Select("BOOKCODE like '%" + value + "%'");
- //foreach (var col in rows)
- //{
- if (result.Count() > 0)
- {
- MessageBox.Show("BookCode Not Found");
- //Application.Exit();
- }
- //}

Bryian TanRank #396 · 6.3K reputationPosted May 6, 2019, 7:07 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted May 6, 2019, 6:57 PM EDT
Nebula34 reputationPosted May 6, 2019, 7:27 PM EDT
Nebula34 reputationPosted May 6, 2019, 8:45 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted May 6, 2019, 8:58 PM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted May 6, 2019, 9:16 PM EDT
Manoj BhoirRank #599 · 4K reputationPosted May 6, 2019, 9:45 PM EDT
Bryian TanRank #396 · 6.3K reputationPosted May 7, 2019, 2:23 AM EDT