Új hozzászólás Aktív témák
-
Mad_nv
csendes tag
Hello!
C#-ban WCF segítségével szeretnék írni egy programot, ami egy DataGridView-ban tárol adatokat, és ezt tudja majd elérni a kliens. Egyenlőre még csak a szerver készítésénél járok. Amíg nem rakok a programba DataGridView táblázatot addig minden jó, de amint csinálok egyet a Form-ra, indításkor (amikor a host Open() függvényét meghívom) a következő Exceptiont kapom:
Type 'System.Windows.Forms.DataGridViewRowCollection' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute.Nem tudom, hogy a DataGridView elemeit, vagy az egész collection-t hol tudom megjelölni a [CollectionDataContract] attribútummal, vagy valami mással amit a segítségben ír.
Remélem valaki ért ehhez a témához és tud nekem segíteni.
A választ előre is köszönöm!
Új hozzászólás Aktív témák
● ha kódot szúrsz be, használd a PROGRAMKÓD formázási funkciót!
- Bomba ár! Lenovo ThinkPad T14s G1 - i7-10G I 16GB I 512GB SSD I 14" FHD Touch I Cam I W11 I Gari!
- Telefon felvásárlás!! iPhone 11/iPhone 11 Pro/iPhone 11 Pro Max
- EREDETI NINTENDO Pokemon Go Plus autocatcher dobozban eladó
- RAPOO 7100P 1000DPI optikai rádiós 5GHz egér
- Apple iPhone 12 Mini 64GB,Újszerű,Adatkabel,12 hónap garanciával
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
