First off, you need an extra "@" in there:
SqlCommand com = new SqlCommand("select id,name,type,data from uploadd where name=@name", con);
com.Parameters.AddWithValue("name", GridView1.SelectedRow.Cells[1].Text);
Becomes:
SqlCommand com = new SqlCommand("select id,name,type,data from uploadd where name=@name", con);
com.Parameters.AddWithValue("@name", GridView1.SelectedRow.Cells[1].Text);
Otherwise the parameter is not linked up to the query properly.
You don't say which line gives you the error, but the fact that you don't get an SQL exception indiates that that it is the Parameters.AddWithValue line that is probably throwing the null reference: So check your SelectedRow paramater and make sure there is one - probably it is null, but it could also be that the Cells collection does not have sufficient cells - check the Count as well.
Two other things: Don't use constructs like:
if (!IsPostBack == false)
It is slow any awkward to read:
if (IsPostBack)
Is a lot easier.
And don't use "magic numbers" like "1" - use a constant instead so if it moves later it only has to be changed in one place.