I am using a datagridview, there are four columns in that, & on fourth cell i have a button field, when i click on that i want to get the text of item(0) of selected row.
please help me to solve this
HINT : :)
Dim sel_row_index As Integer Dim sel_col_index As Integer Private Sub DataGridView1_CellClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick sel_row_index = e.RowIndex sel_col_index = e.ColumnIndex End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click MessageBox.Show(DataGridView1.Item(sel_col_index, sel_row_index).Value.ToString) End Sub
Thanks It's Working
This is the first in (hopefully) a series of posts about vbScript. Please see my post vbScript - The Basics for more details on vbScript.
My wife and I take ...
Hi, I've written this code which i send below. now i have a listview, and when i click each item in my listview, i want it's related word to be ...
My plan is to post a series of hopefully useful and informative vbScript Functions and Subs. I started writing up my first code snippet and found ...