Click here to Skip to main content
15,904,494 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a gridview which consist of textboxes and comboboxes. now i want to take the values of combobox and textboxes inside a button click event۔ Button is outside of the gridview but on a same form.
how can i do this??
Posted
Updated 27-Oct-13 8:10am
v2
Comments
Homero Rivera 27-Oct-13 14:02pm    
Where is the triggering button? In the GridView? Out of the GridView? Can you edit your question with those details? Thanks

1 solution

By using System.Windows.Forms.DataGridViewCell.Value. Please see:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.value.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewcell.valuetype.aspx[^].

Look, you again ask about something which you can easily read in appropriate MSDN articles, again on System.DataGridView. This is indicative. Maybe you need to learn on using controls or UI development in general, or just learn how to use documentation. If you are going to keep asking such small question as you go, it won't take you long, you will never move yourself to actual development.

—SA
 
Share this answer
 
Comments
Muhamad Faizan Khan 27-Oct-13 15:00pm    
so i need to study my self
Sergey Alexandrovich Kryukov 27-Oct-13 15:07pm    
Good idea. It will also be much faster. Better don't waste your time.
—SA

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