Hi Guys,
Here I attached my sample application,
in this I am able to fetch the whole data from database and shown in datagrid,
But here Suppose if I wanted to display the first row of first column then how we can ............?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Feb 19, 2010, 7:57 AM
Enjoy !!
and Please check "Do you like this answer" check box :)
Ankit RathorePosted Feb 22, 2010, 1:18 AM
This code is not working man .............
Ankit RathorePosted Feb 19, 2010, 7:03 AM
U just change the query over there ,
which show the first row simply,
But I don't want do that,
by keeping the same query {Select * from test}
but in datagrid it should display first row first column only.
Please help me
Kirtan PatelPosted Feb 19, 2010, 6:52 AM
you just need to change your select query ..
like
select top 1 * from tbl1
this will fetch only first row of table. .
if my answer helps you then please check "Do you like this answer" check box :)