To insert values from a gridview to textboxes in web page
-
i am doing an web page application in which i want to populate all the row data values of the colum or row clicked by user... As there is no mouseover or mouse click event for GridView in ASP .net wat can i do .... Please Help...... Thanks
SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE
-
i am doing an web page application in which i want to populate all the row data values of the colum or row clicked by user... As there is no mouseover or mouse click event for GridView in ASP .net wat can i do .... Please Help...... Thanks
SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE
1. You can use DataGrid's ItemDataBound event for this. At any point you can have the exact cell value by --> e.Item.Cells[x].Text -------------------------------------------------------------- 2. You can also have mouseover or mouse-click events for a DataGrid Row. if (e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem) { if (e.Item.ItemType == ListItemType.Item) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } if (e.Item.ItemType == ListItemType.AlternatingItem) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } }
-
1. You can use DataGrid's ItemDataBound event for this. At any point you can have the exact cell value by --> e.Item.Cells[x].Text -------------------------------------------------------------- 2. You can also have mouseover or mouse-click events for a DataGrid Row. if (e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem) { if (e.Item.ItemType == ListItemType.Item) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } if (e.Item.ItemType == ListItemType.AlternatingItem) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } }
i want to know how it can be done in gridview control
SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE