Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error in DataGrid
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00770387
Message ID:
00771811
Vues:
28
I don't use the datagrid directly, under the datagrid in the window form I have some textboxs binded to the datasource/datarelation, all the data changes doen in these textboxs. and after updating the DataAdapter the datagrid gets updated.

That's how I'm doing it.


>Ahmad,
>
>Try adding a new row to your child datarelation without using the datagrid and make sure it updates as expected.
>
>>Hi Cathi,
>>
>>Sorry for the dealy, it's the situation here as you know...
>>
>>Well I am not using filter, I am using a DataRelation, and mostly I face this problem if the child table has no data to be displayed in the datagrid then when I add data to it & try to update the DA I got this error, some times if the child table has a data I don't see the error.
>>
>>I already tryed to set the .CurrentRowIndex, but no effect.
>>
>>
>>
>>>Ahmad,
>>>
>>>By chance are you using a filter? If so, then right before you change your filter, try setting the DataGrid.CurrentRowIndex to zero so it will not be outside the limits of the grid after the filter.
>>>
>>>
>>>>Dear All,
>>>>
>>>>I am having a strange error:
>>>>((An unhandled exception has occurred in your application. if you click
>>>>continue, the application will ignore this error and attempt to continue
>>>>if you click quit. the application will be shut down immediately.
>>>>
>>>>Index was outside the bounds of the array.))
>>>>
>>>>This error fires, when I add a new row to my data grid.
>>>>
>>>>Any idea what could be the problem?
>>>>
>>>>Thanks in advance.
<><><><><><><><><><><><><><><><><><><><>
<><> REMEMBER,,,,KNOWLEDGE IS POWER <><>
<><><><><><><><><><><><><><><><><><><><>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform