Hi
Use itembound u can get the each and every cell value
private void dgdUserBrowse_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType != ListItemType.Header && e.Item.ItemType !=
ListItemType.Footer)
{
((LinkButton)e.Item.Cells[0].Controls[2]).Attributes["onclick"] =
"javascript
:return confirm('Delete user. " +
DataBinder.Eval(e.Item.DataItem,"name") + "?')";
}
}
pls check this code
Regards
Venu.
"Mohammed Abdel-Razzak" <an*******@discussions.microsoft.com> wrote in
message news:87**********************************@microsof t.com...
dir sirs
I have a problem with the data grid
I want to get the data in the selected cell and store it in a string
How can I do that??!!
thanks sir
Mohammed