Jump to content
Xtreme .Net Talk

bernhard7gruber

Members
  • Posts

    5
  • Joined

  • Last visited

About bernhard7gruber

  • Birthday 08/29/1968

bernhard7gruber's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. what is the best way to exchange data between two apps ? both of them run on the same machine the task is simply to check wheater the other app is there and if so, to send a list of numbers (ids in a datatable) are there any predefined objects to use, or do i have to code all that stuff with sockets ... I'm thinking of the so hyped SOAP
  2. it works, and it doesn't work thanks a lot for your help - even though i'm a little confused now the example works without an error, but the set of records in the slave-grid is not filtered by setting the filterrow-property (at least the grid shows the same set of records as before ...) BUT : when I create an extra DataView Object for the slave-table and bind this to the grid IT WO-ORKS thanks again
  3. misunderstanding ?? tnx for the reply csharpener, but there must have been some misunderstanding first of all, I doent know how many records are in the master-table, so I cannot create a tablestyle for every record there, and I really think you didn't meen that I should I have TWO GRIDS, and they should be related in that way, so that the 'slavegrid' always shows all records (and only those) belonging to the ACTUAL record of the 'mastergrid' (e.g. all orders of a customer) I'm not really familiar with tablestyles, but I did use them already, and I doen't think, my problem has something to do with tablestyles
  4. I want to build a datarelation between an SQL-Table and an XML-Document. The task is to filter the table (about 10000 records) with a list of ID-Values (about 100) presented in the XML-Doc I create the relation by joining the two tables of the dataset grafically in the designer and this works fine. But when i try to call sqlDataAdapter.Fill (dataset) i get an error telling me, that either the non-null, the unique or the foreign-key constraint are violated can anybody tell me why ?? i think my code will not help a lot here, but anyway: DataSet11.ReadXml("D:\develop\.NET\TESTPROJEKTE\heroldTests\heroldTests\joinTableAndXML5\slave.xml") childCol = DataSet11.Tables("zbz").Columns("ZAEHLB_ID") parentCol = DataSet11.Tables("slave").Columns("ZAEHLB_ID") Dim relMasterSlave As DataRelation relMasterSlave = New DataRelation("masterslave", parentCol, childCol) DataSet11.Relations.Add(relMasterSlave) SqlDataAdapter1.Fill(DataSet11)
  5. i have a dataset with 2 tables and a relation between these 2 tables now i show both tables in 2 grids on one form what i want is: when i klick in a row in the 'mastergrid' the 'slavegrid' should show only those records that fit the key in the mastergrid e.g. : customers and orders --> when i'm at a certain customer in the 'mastergrid', i only whant to see the orders for that customer in the 'slavegrid' here' the code (dataset & relation created in the designer) SqlDataAdapter1.Fill(DataSet11, "master") SqlDataAdapter2.Fill(DataSet11, "slave") With DataGrid1 .DataSource = DataSet11 .SetDataBinding(DataSet11, "master") End With With DataGrid2 .DataSource = DataSet11 .SetDataBinding(DataSet11, "slave") End With how does the slaveGrid_CurrentCellChanged method look like ?? or do i have to use a dataview where i set the key explicitly ????
×
×
  • Create New...