Find Objects Bound To DataTable?
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
I wondering if there is a way to determine which objects are bound to my
DataTable. I update my DataTable from a thread. My DataTable is bound to a
DataGrid in my main UI. Apparently I will need to perform my table update on
the UI Thread or the DataGrid has issues.
Ideally I would like the DataTable to tell me who is bound to it and then
check if that object implements ISynchronizeInvoke and use that to determine
that I need to actually perform the updates on that objects thread.
Otherwise, I will need to explicitely feed a reference of the GUI control to
my thread updating the DataTable. Any thoughts are appreciated. Thanks
-Fred
.
Relevant Pages
- Re: Issues with datagridview last record updating sql database
... I can use when I actually build my update string? ... or fields i will reference. ... conn = New SqlConnection ... datagrid... ... (microsoft.public.dotnet.languages.vb) - Re: More on my Dataset / Datagrid problem
... You need a reference to System.Data.SqlServerCe and System.Data.Common. ... I failed to populate datagrid thru the following code. ... >> you can see from the code below i use only 1 db connection and default ... This table holds itemcode, quantity etc. ... (microsoft.public.dotnet.framework.compactframework) - Re: Passing parameters between form classes - C#
... single class. ... in addition to passing a reference variable to the zip code the user has ... the value which the user clicked on in the datagrid. ... (microsoft.public.dotnet.languages.vc) - Re: Hiding DataGrid Columns when AutoGenerateColumns="true"
... Remember the order of this cell and use it as ... Microsoft MVP ... would like to find a solution that allows me to reference the column by ... Of course, I can't hide the column after the DataGrid is bound, ... (microsoft.public.dotnet.framework.aspnet.datagridcontrol) - Re: beginners problems with controls and classes
... "I get a message that dgHH (my HH datagrid view) does ... If you have done the changes I suggested (creating an instance of GetData), ... The problem you had was to first be able to reference the form, ... That's only a "hack solution", which you should avoid in the long run, as it ... (microsoft.public.dotnet.languages.csharp) |
|