Click here to Skip to main content
15,883,883 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How can I get DataGrid cell value At Execution Time in WPF.

Actually Problem Is That I Take To Columns in datagrid one is string and another column is Combobox and I cant get Combobox value so how can i get Combobox value???? i want to store it in a variable
Posted

try this link a complete information how to bind.........
DataGrid Template Columns creation in Runtime (using C#) and DataBinding[^]
 
Share this answer
 
Try this..
C#
string yourvariable = dataGridView1.Rows[1].Cells[1].Value.ToString()//here i assume your combox box is in the second cell of datagrid view You can Change it Like this Cells[0]
 
Share this answer
 
v2

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