Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#3.0
I have inserted a table in Sql Server. The table contains 5 rows.Now my query is i want to get only first 2 rows in one datagridview1 and next 2 rows in datagridview 2 for tis how should i execute the Query.

Posted 27-Nov-12 18:25pm
biswarup88 at 28-Nov-12 0:47am
in which condition you want to get that first two value ??
Just write that SQL query mentioning that condition and you'll find your solution easily.

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

  Print Answers RSS
0 OriginalGriff 693
1 George Jonsson 370
2 BillWoodruff 317
3 Sergey Alexandrovich Kryukov 259
4 Garth J Lancaster 240
0 Sergey Alexandrovich Kryukov 10,764
1 Maciej Los 5,474
2 OriginalGriff 5,472
3 CPallini 3,819
4 BillWoodruff 3,594

Advertise | Privacy | Mobile
Web03 | 2.8.141030.1 | Last Updated 28 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100