For Programmers: Free Programming Magazines  


Home > Archive > C# > January 2005 > databinding problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author databinding problem
Ondrej

2005-01-12, 8:57 am

perhaps someone could help a newbie with his big problem.

i have an arraylist with objects (class i made with two properties).
and i'd like to bind it to a datagrid. there are 3 buttons on the
form which should works as add, edit and delete. the problem i have
is everytime i use these buttons, they add(edit, delete) object to the
arraylist but i don't know how to refresh the datagrid. should i call
the method i use for databinding again? especially when i delete an
object, there is some inconsistency and the program collapses.

a piece of code would be appreciated very much :)


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com