how to use data grid in asp.net
-
If i click the datagrid i want the corresponding data to be displayed in a text box?
-
If i click the datagrid i want the corresponding data to be displayed in a text box?
ps.srinivasan wrote:
If i click the datagrid
Which part of datagrid do you want to click? header or cell or footer or border or something?? It would be great if you can tell us more details and specific about what you really want. then, it is more easier for us to help you. srinivasan
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
-
ps.srinivasan wrote:
If i click the datagrid
Which part of datagrid do you want to click? header or cell or footer or border or something?? It would be great if you can tell us more details and specific about what you really want. then, it is more easier for us to help you. srinivasan
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."
thank u for reply I want to retrive cell Value
-
thank u for reply I want to retrive cell Value
DataGrid will be rendered as HTML table. On
ItemDatbound
event, get the cell text and make a call to a javascript function on theOnClick
event of the cell.e.Item.Cells[0].Text = "<a onclick="YourJsFunction('" + e.Item.Cells[0].Text
- "')>" + e.Item.Cells[0].Text + "</a>
above code will set the OnClick event for first cell. Cell value will be passed as parameter to the JS function which can be assigned to text box. Hope it helps
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions