Hi all,
In my DataGrid1 I want to read one cell (data type int from database) and put it's value in the TextBox1 control.
Code:
private void DataGrid1_UpdateCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{....
TextBox1.Text = (Convert.ToInt64((e.Item.Cells[1].Controls[0]))).ToString();
....
}
I got run time error mesage : "Specified cast is not valid."
Can anyone tell me how to do this casting?
Thanks,
Nenad