onclick event for data grid
-
-
Do you mean to say 'on the click of a particular record on the DataGrid you want to display the details in the TextBoxes outside the DataGrid? If yes then You can write the code on the
ItemCommand
event of theDataGrid
which will be fired when you click on the DataGrid link.
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
-
-
Do you mean to say 'on the click of a particular record on the DataGrid you want to display the details in the TextBoxes outside the DataGrid? If yes then You can write the code on the
ItemCommand
event of theDataGrid
which will be fired when you click on the DataGrid link.
Life is not measured by the amount of breaths we take, but by the moments that take our breath away.
John Prabhu wrote:
'on the click of a particular record on the DataGrid you want to display the details in the TextBoxes?
Yes.
John Prabhu wrote:
f yes then You can write the code on the ItemCommand event of the DataGrid which will be fired
I am fresher for asp.net plz give some sample code
-
John Prabhu wrote:
'on the click of a particular record on the DataGrid you want to display the details in the TextBoxes?
Yes.
John Prabhu wrote:
f yes then You can write the code on the ItemCommand event of the DataGrid which will be fired
I am fresher for asp.net plz give some sample code
-
bind linkbutton with grid...on select find control....find value ...fill data according to value in dataset...pass to textbox... hope u understand..
Impact Pro
hello, If the data you want to display came from a binded data source, you could put your textbox in edititemtemplate section, bind it to right item to display and make a linkbutton (or a button) as itemtemplate. When a user click the linkbutton, use edititemindex in itemcommand event to make your grid in edit mode.
Just Relax And Keep It Simple.