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 TanPosted May 7, 2019, 6:23 AM
Manoj BhoirPosted May 7, 2019, 1:45 AM
Rajanikant HawaldarPosted May 7, 2019, 1:16 AM
Rajanikant HawaldarPosted May 7, 2019, 12:58 AM
NebulaPosted May 7, 2019, 12:45 AM
NebulaPosted May 6, 2019, 11:27 PM
Bryian TanPosted May 6, 2019, 11:07 PM
Rajanikant HawaldarPosted May 6, 2019, 10:57 PM