C# .NET - DataGridview - Show only the 20 record

Asked By Bhawana on 16-Jul-12 06:00 AM

hi all,

How can i limit my datagridview to display only the first 20 records out of n-numbers of records.

i cant you top 20.

any help
Jitendra Faye replied to Bhawana on 16-Jul-12 09:38 AM
Then use query like this-


select top 20 colname
from tablename


Use this and let me know.