How can I pick the datagrid value randomly of particular colum????
-
I have data grid view with multiple colums and rows.In the datagrid view every row there is a single buton. my question is if user clicks this button of any rows randomly how the value of particular colum of corresponding rows can be picked up ??? i am using window application in c#. can anyone guide me. with regards tarak
-
I have data grid view with multiple colums and rows.In the datagrid view every row there is a single buton. my question is if user clicks this button of any rows randomly how the value of particular colum of corresponding rows can be picked up ??? i am using window application in c#. can anyone guide me. with regards tarak
I'm not 100% sure that I fully understand your question, but taking a best guess, something like:
string columnValue = myDataGridView.Rows[myDataGridView.CurrentRow].Cells["nameOfTheColumn"].Value.ToString();
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”