fetching the value of a datafield into a textbox
-
hi, after fetching the data into the datagridview, how to display the value of a particular field of a selected row, in a textbox.
Nitin Raj Bidkikar
Hi, for that you have to start with evetn of SelectedIndex Changing of gridview. in that u will get selectedindex using e.RowIndex.. Now u can get any cell's value from that.
Thanks, Sun Rays To get something you must have to try once. My Articles
-
hi, after fetching the data into the datagridview, how to display the value of a particular field of a selected row, in a textbox.
Nitin Raj Bidkikar
Hi Dear.:laugh: TextBox1.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text; Write this in your GridViewChanging or Some Button Click event will help you....sure... Thanks
"Good Thing Goes With Good People..."
-
Hi Dear.:laugh: TextBox1.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text; Write this in your GridViewChanging or Some Button Click event will help you....sure... Thanks
"Good Thing Goes With Good People..."
-
Hi, for that you have to start with evetn of SelectedIndex Changing of gridview. in that u will get selectedindex using e.RowIndex.. Now u can get any cell's value from that.
Thanks, Sun Rays To get something you must have to try once. My Articles
-
Iam using datagridview and not gridview, its a windows application, not an asp. there is no selected index available .please help
Nitin Raj Bidkikar
Hi, check this.. it will help you.
Thanks, Sun Rays To get something you must have to try once. My Articles