No problem I can trust you and don't remember all keystrokes, mouse clicks I made (though I once reproduced with up arrow and I don't understand what's there telling to add a row as a response to up arrow). Anyway it was just a sample.
Cetin
>Cetin,
>
>No, I think I was right ... if you arrow down past the last row (which you'd do eventually if you're "pressing arrow keys irregularly), the grid will automatically add a blank row to the end of your DataSet. This *is* what's causing the invalid cast error. Trust me. <s>
>
>~~Bonnie
>
>
>>Nope it's not that. It happens when you don't add anything. ie: One of the ways to generate:
>>Drop the dtpicker
>>Press arrows irregularly (already there is code error).
>>Cetin
>>
>>>Cetin,
>>>
>>>It looks to me like this is happening when you get to the point in the grid when you're adding a new row. Everything is NULL and this sample code is obviously not doing any kind of special handling for NULLs. That's where the error message is coming from. NULLs can be a real pain sometime, but they are a special case that need special handling.
>>>
>>>~~Bonnie