Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi!!

I want to get value from sql database into dataGridView but in where condition I should hav to give a datagridview cell value..

plz help
Posted
Comments
ridoy 16-Aug-13 13:27pm    
not clear at all.
sammun 17-Aug-13 11:26am    
I have 1 datagridview like as follow

sr.no code name

I want to give code value manually & name should be generate automatically from database
JoCodes 16-Aug-13 13:36pm    
Please elaborate your question ...
sammun 17-Aug-13 11:26am    
I have 1 datagridview like as follow

sr.no code name

I want to give code value manually & name should be generate automatically from database
joshrduncan2012 16-Aug-13 13:38pm    
What is your question? Where are you stuck? Can you show us what you have attempted so far?

1 solution

C#
object obj = dataGridView1.CurrentRow.Cells["TaargetCellName"].Value;
            //use from this object value in Where Condition...
 
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