Link to home
Start Free TrialLog in
Avatar of MoniMatthews
MoniMatthewsFlag for United States of America

asked on

object error

I am using a view from a different database to populate my datagrid. Once the user hits import button inside the datagrid the record is removed from view. the screen goes through the motions but doesn't remove the record from view and it gives me this error: Object reference not set to an instance of an object.
private void gridImport_ItemCommand(object source, DataGridCommandEventArgs e)
		{
			if(e.CommandName == "import")
			{			
				string proposal_number=e.CommandArgument.ToString();				
				
				TransferProposalPackage(proposal_number + ".pdf");
				ADTransfer.Transfer transfer = new ADTransfer.Transfer(proposal_number,Cycle.ColumnValue.pk_cycle.ToString());
				lblErrMsg.Text=transfer.errMessage;
				bindDataGrid();
 
						
			}			
 
		}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of ororiole
ororiole
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MoniMatthews

ASKER

Thank you for your help.