Click here to Skip to main content
16,007,277 members

Comments by jamesdk8 (Top 5 by date)

jamesdk8 11-Jan-11 15:52pm View    
I have made a couple changes and got rid some unnecessary code. This is what I'm working with now. The current problem now is ncrRow is null after I pass selectedRow to it.

private SCDataSet.qNCRRow GetNCRRow()
{
DataRow selectedRow = ( DataRow )GridNCRView.GetDataRow( GridNCRView.FocusedRowHandle );
SCDataSet.qNCRRow ncrRow = selectedRow as SCDataSet.qNCRRow;

if ( ncrRow != null )
{
return ncrRow;
}
return null;
}
jamesdk8 10-Jan-11 11:55am View    
This works but when I get into the second method the row.DataBoundItem Property is null (see above).
jamesdk8 7-Jan-11 17:40pm View    
The problem with this is the DataRow.ItemArray is an array of the the row data and everything is not a int. Some are strings and booleans also.
jamesdk8 28-Sep-10 16:59pm View    
Deleted
Alright here's some code but it's kinda pointless cause the problem is not with the code that is called. It's with the event. It's just not executing the code in it. bare in mind I'm using VS2005. I've tested it in 2010 and it seems to work fine but that's a simple 1 form app not complex like the one giving me problems right now.

private void BaseForm_FormClosing( object sender, FormClosingEventArgs e )
{
SaveSettings( this.FindForm().Name, this.FindForm().Name, checkbox1.Name, checkbox1.checked );
}
jamesdk8 28-Sep-10 14:35pm View    
I've already tested the code to see if it works like you said. No XML file is created when the code is placed in the form close event.