Click here to Skip to main content
15,917,638 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
In windows application(forms) using c# from frontend iam giving rownumber in a textbox then the row colum values will must be display in datagrid..
can any one help me..
Posted
Updated 8-Mar-12 15:12pm
v3
Comments
Pete O'Hanlon 8-Mar-12 11:50am    
You might want to expand that just a tiny bit. What data do you want displaying in the datagrid? How does this relate to the textbox?
nagaraju aug2011 8-Mar-12 12:01pm    
In windows application using c# from frontend iam giving rownumber in a textbox
then the row colum values will must be display in datagrid..
Sergey Alexandrovich Kryukov 8-Mar-12 12:57pm    
You did not even specify the type of application and UI library you want to use.
WPF? Forms? Silverlight? ASP.NET? You need to tag it. You need to specify exact full type name of the class you are asking about. And, first of all, read MSDN help pages on that control class. It usually explains everything very clearly. Write the code. If you stuck, make a simplest possible code sample and show it (see "Improve question") above. Ask what exactly is your problem.
--SA
bala.vanchi 9-Mar-12 1:42am    
To understand your question correctly, if you enter a grid row number (assume gird hold 10 rows) say example 3. Then grid should get populated with the row id values. am I correct?
nagaraju aug2011 9-Mar-12 2:10am    
i don't no what is there in database...just i entered row number in the textbox.. i want that row column data only..

1 solution

from the index you should be able to get the DataSet record which should have a unique key. With that key you can filter the table in the DataSet using the Select function.

I'm not sure if that is sufficient or if you need to call DataBind again or if you even need to assign your source again.

Hope this helps.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900