Hi
I am right at the beginning of a conversion of an application from Clipper to C# against M$ SQL.
At first glance the DataGridView looked like a good way to help the users enter data in a spreadsheet like fashion - but it is driving me mad.
I have started with a one form, one table example - the table has just three columns; ID, Description & Manager - both ID and description have to be unique and manager must be completed. I thought this would be easy peasy.
If I use the dgv in 'spreadsheet' mode (using the NewRow) I don't get the underlying ID from the database, and I can't even seem to validate the description against the SQL back end.
Is it better to simply avoid using the whole NewRow thing and program forms that let the user complete record details in the traditional fashion - form by form, validate before save?
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.
I am right at the beginning of a conversion of an application from Clipper to C# against M$ SQL.
At first glance the DataGridView looked like a good way to help the users enter data in a spreadsheet like fashion - but it is driving me mad.
I have started with a one form, one table example - the table has just three columns; ID, Description & Manager - both ID and description have to be unique and manager must be completed. I thought this would be easy peasy.
If I use the dgv in 'spreadsheet' mode (using the NewRow) I don't get the underlying ID from the database, and I can't even seem to validate the description against the SQL back end.
Is it better to simply avoid using the whole NewRow thing and program forms that let the user complete record details in the traditional fashion - form by form, validate before save?
Regards
Griff
Keep [Smile]ing
There are 10 kinds of people in the world, those who understand binary and those who don't.