Posts

Showing posts from June, 2011

Integrated Map in SharePoint 2010 not displaying PushPins from Database

i integrated silverlight map control sharepoint 2010 web site. map displays correctly, pushpins pulled database not display on users computers, yet can see on development pc, both in vs2010 environment , opening web page. am missing simple here way xap file or web server host configured?   thanks, ok! the issue isolated data service. guess it related cross domain access. could try article  http://blogs.msdn.com/b/carlosfigueira/archive/2008/03/07/enabling-cross-domain-calls-for-silverlight-apps-on-self-hosted-web-services.aspx , sets clientaccesspolicy.xml(crossdomain.xml) enable cross domain calls.   msft hemant goyal Bing Maps  >  Bing Maps WPF, WP7/8/8.1, Silverlight

orchastration debugger biztalk server 2009

Image
hi , i can see completed orchastration in admin console(inside tracked service instance) ,here not able see latest version orchastrations . why because want see newley added shpeas in orchastraion ,once debug can see changed shape .here not able see orchastartion after completed orchastration process also . even not able debug when messae in active  ,here getting below error , have selected orchastration trackevent ,trackmessage bodies , track properties . error details : tracking database doesn,t have records selected service instance at thanks vittalaranga hi vittalaranga, you can confirm whether orchestration deployed or not using following ways: if assembly versioned properly, check in resources/gac. use can use tools process explorer see version of assembly load in process. if have enabled diagnosis code log log/tracing on orchestrations by checking output of message. debugging orchestration for deplyoument error, if can confirm orchest

XSD.exe utility insights

hi,  i used xsd utility  in .net framework 2.0 on dll, has following objects. class a {    string name;   string id; } class b : a {     int age;     int year; } class c: a {     int month; } , on.. now, when create xsd, includes class base object in both class b , class c, not, want. there way create xsd, members of class included in class b , class c ? secondly, couldn't figure out logic behind "minoccurs" , "maxooccurs" numbers generated in xsd file. thanks, -brajesh hi, - xsd.exe designed preserve class hierarchy in xsd can't turn off other remove class hierarchy in code. - iirc, value types (which cannot null in .net) have minoccurs="1" , reference types (which can null) have minoccurs="0".  means when string values null, elements won't written @ all.  maxoccurs="1" unless type array or collection in case maxoccurs="unbounded". hope helps alex  

Serial Port Tutorial

is there tutorial or guideline me start? currently using #c microsoft visual. is there tutorial or guideline me start? currently using #c microsoft visual. try link =) http://msmvps.com/blogs/coad/archive/2005/03/23/serialport-_2800_rs_2d00_232-serial-com-port_2900_-in-c_2300_-.net.aspx emeraldknight Visual Studio Languages  ,  .NET Framework  >  Visual C#

How System.Type in class in C# work?

as  system.type  class used reflection. , of members defined in  system.type  is  abstract . in code  fullname  property used class name, declared abstract in  system.type namespace consoleapplication93 { class myclass { int val; } class program { static void main(string[] args) { type t = typeof(myclass); console.writeline(t.fullname); console.readline(); } } } is  fullname  implementation ?? update: here how it  system.type  defines public abstract string fullname { get; } abstract actual implementation of property is clr providing code ??  i unable understand how abstract class (system.type) can call abstract property ? hi,  interesting question. notice myself. try code below. , returns system.runtimetype console.writeline(typeof(asciiencoding).gettype()); i check msdn , it's give clear explanation.  http://msdn.microsoft.com/en-us/library/system

Do I need to partition a LAG statement in a SELECT clause if the query is already being partitioned?

i have query pulling data directly input , using partition partitionkey on query: select a  from inputstream partition partitionkey if need add lag select: select a, lag(a, 1) on (partition partitionkey limit duration(hour, 1)) preva from inputstream partition partitionkey so partition statement in lag necessary in scenario or can removed since source being partitioned? hi, it may redundant, should keep partition in lag statement, describes intent of query. the partition @ query level (in statement) used performance optimization. thanks, js Microsoft Azure  >  Azure Stream Analytics

Telerik Report vs Crystal Report

hi friends, i in need choose between telerik reports or crystal reports project. do have advice? life gift. gift threads abount that: http://www.telerik.com/forums/comparison-to-crystal-reports "just quick opinion on telerik, ms reporting , crystal. crystal support: non-existant. product industry dominent definately has quirks,  don't programmatical side of crystal, designer has bugs , quirks which, once familar can make product workable.  have used crystal many years , not sorry leave behind. microsoft reporting , telerik grouping these 2 feel similar. both products work within visual studio. i prefer teleriks styling options on rs. i expanded charting options telerik gives on rs (although rs can add on dundas reporting packages them expands charting options above telerik's, @ hefty price). i find telerik's ability connect datasources easier rs.  connect object graph , therefore have little use dataconnector wizards etc.

create a function that returns day difference between two dates (inclusive),

hi all i wanna create function returns day difference between 2 dates (inclusive), without using any function provided platform or external library. function must work dates in the range of 1st january, 1901 through 31st december 2999, inclusive. example, there 5 days in range bounded 15th march, 2004 , 19th march, 2004. note-kindly consider leap year well. thanks mdx. "  without using any  function provided platform or external library" you'll have decide means - not using framework or "functions provided platform" make difficult. if can use framework, datetime , timespan structures first place look... provide necessary methods you'd use here. if want avoid primitive types (not sure draw line), you'll need good algorithm determining whether year leap year , implement it, , use determine number of days per year, etc. reed copsey, jr. - http://reedcopsey.com if post answers question, please click " mark answer &

BTDF - Web services deployment (Orch publishing as WCF service)

Image
i wanted include wcf published orch deployed  in btdf.proj way. (btdf 6.0) i followed instructions adding :  , set virtual directory true when deploy it, receiving error : error : vdirlist itemgroup no longer supported.  please convert iisapppool , iisapp. [c:\work\global tfs\biztalk\source\development\brightstar.integration.wcfsqltest\deployment\deployment.btdfproj]. my advance settings in iis : mbh please see comments will .btdf proj file automatically create iis pool in iis server or need manually create pool first hit deploy button ? because here first created munually apppool jb : know not create app pool  first time. in case use “octopus deploy” btdf deployment instructions in octopus creates apppool us. what difference between 'wcfservicedescription.xml' , under app_data 'servicedescription.xml' ? jb: 'servicedescription.xml' contains purely schema information , assembly schema belongs to.      

BiZtalk SOA realtime data

hi, currently have 2 systems connected point point using stored procedure. we have remove point point integration using biztalk , soa. system "a" getting real time data system "b" using stored procedure. if want put biztalk middleware , still want have same performance should best approach. ayaz shaikh hi mohammed, there 2 ways using wcf service-> use wcf service instead of using biztalk data. have better performance , have services data can further enhance support lob apps. using biztalk -> needs request/response solution in biztalk. if using biztalk 2006 can following create biztalk orchestration request response mode call stored procedure using .net custom class better response time, can use sql/oracle adapter fetch data not recommend here. expose .net web service perform database tuning achieve low latency solution described in blog. at  http://alamnaushad.wordpress.com/2010/12/07/basic-changes-for-low-latency-1/ if using bizta

Changing File Permissions

i have file want copy different location. files marked readonly. want change permission not read , copy file , change permission back. there way handle this?   here how detect attribute:   string file = @"c:\file.jpg"; fileinfo info = new fileinfo( file ); if ( (info.attributes & fileattributes.readonly) != 0 ) console.writeline( "read only" ); else console.writeline( "nope" );   little explain. if don't care other atributes (hidden, archve etc.) can make this: info.attributes = fileattributes.normal; info.attributes = fileattributes.readonly; but if don't want to change other attributes must bitwise operations and here little explain: | (or) make this   101 | 010 = 111 or 111 | 010 = 111 and ^ (xor) make 111 ^ 010 = 101 so, when are removing some attribute you must sure, attribute set before you can remove it. markku Archiv

Sending a WAV file over the USB port using VB 2008?

hi all, pretty new programming visual studio 2008 - did learning writing progs dos based applications when access 'the metal' , real things pc.   as can see used control things pc got disulussioned advent of win 2000, xp etc coming along.   cut chase.....quite need write application send wav file on usb port remote piece of hardware have designed store file , play through dac.   questions:    vb 2008 able job? will need libraries written handle usb port arn't supported microshaft? will need write descriptor file pc end of usb i/f?         any appreciated   chris   chris,   the design of application wouldn't different now, glory dos days, if anything, easier.   communication on usb, differs dos days because access usb port via usb driver.   assuming device on other end of usb can correctly read , decode, , play wav file, should go.   from know these sorts of things, there should generic windows driver usb port, , shou

Disappearing Purchase Orders

  hi there   we taking account payments named purchase orders, fine , works fine every , again observing of these go missing.. have no errors , cannot pinpoint issue.   the users receving email tracking number confirming order tackingnumber found in commerce server..   please tell why might happen , if there wrong way doing this.. major issue offline processing , missing payments means unhappy customers.   many thanks   ryan     private bool processpayment( decimal amount, string creditcardid) { bool transuccess = true ; using ( transactionscope scope = new transactionscope ( transactionscopeoption .required)) { //get user profile userobjectprofile user = currentuser .getuserprofile(); string trackingnumber = string .empty; try { ordercontext ocx = commercecontext .current.ordersystem; orderform orderform = new orderform ( "payment" ); orderform.name = "payment" ; //add address addressprofile badd

biztalk sql adapter

hi, i'm developing biztalk solution using sql adapter r2 2006 pack. i'm polling table living on sql database records -  created via trigger on "main" sql table (update, insert, delete). polling achieved stored procedure executed @ timed interval. intention delete record secondary table once poll has retrieved message - oracle delete after poll event (basically loop in orchestration , issue delete statement on record polled , in orchestration) however, when came transform message using mapping engine results i'm recieving poll, sql schema not providing me way of mapping each field results delete/update updategram. can shed light why can map between getrecord header , not results returned header? i tried same thing , works fine me. here did validate said: -> created simple receive scenario in select data database table -> created map separately schema obtained above , schema delete updategram -> tested map input got in first point above (the select

Schema version 2016-04-01-preview and clientTrackingId

hey, i’m trying new things released in schema version 2016-04-01-preview. option provide client tracking id looking interesting me , tried implement within simple logic app.  within logic app retrieve value using workflow definition language i’m not sure how. i’ve tried clienttrackingid , workflow().clienttrackingid without luck. understanding, value should available within every step of logic app, looking way access data programmatically. thanks, kevin kevin if sending in own client tracking id should accessible header trigger (@triggeroutputs()['headers']['x-ms-client-tracking-id'] ) you can access run id via @workflow()['run']['name'] let me know if works. Microsoft Azure  >  Azure Logic Apps

ADODB, ASP.NET and Crystal Reports for VS 2010

not sure if in best place, or why first part has switched small font! nb - i've raised 'crystal report' issue in sap forum, if unable address side of issue, can @ least address specific question "does lack of support adodb extend corresponding odbc access method (rdo)?" we have asp.net application written many years ago, , upgraded number of times. built under vs2010 32-bit application. application consists of vb code , lot (100+) of embedded crystal reports (using cr vs2010). the application seems rock solid when installed on windows 2003. however, when running on windows 2008 r2 (as 32-bit app appropriate iis settings) getting intermittent crashes in w3wp process. raised incident ms , submitted dump files, , received following response:- " the av happening @ com, oleau32.dll, module part of com plumbing. i hate bearer of bad news, application asp.net 4.0 application using adobd pia assembly shipped visual studio 2005, unfortunately, no

Using biztalk as routing service as in WCF 4.0

hi,   im wondering if following in possible in biztalk.   wcf 4.0 offers routing service accepts raw message , able forward message based on specific criteria, soapaction being obvious one. response routed back.   so clients can send request 1 endpoint (routing service) , receive expected reply. this works great lightweight approach.     is there way through biztalk? we don’t want have deploy schemas generated datacontracts in service in biztalk, have act router (again based on soap action), using pass-through pipelines.     has tried approach? if have how has performance been affected compared wcf router service? advice sould appreciated. thanks mcpd hi, using biztalk router less lightweight approach, enhance flexibility can route on multiple protocols , technology (through adapters). routing can done message-based based on properties, but since not want deploy schema's have go content-based routing principle using orchestration ,

Special characters in C#

hi, i have finished working on rpg battle system on chat network. of players have nicknames special characters like: ö , ß. when bot send output channel characters jumbled question marks (in firefox) how c# process these characters correctly? it seems you need set encoding. have @ http://msdn.microsoft.com/en-us/library/system.web.httpresponse.contentencoding.aspx Visual Studio Languages  ,  .NET Framework  >  Visual C#

Multithreading and ListBox Question

hello, trying multithread listbox has url's in it. basically trying make each thread make, visit 1 of url's in listbox , request. i wondering how make each thread make, visit different site in list, not same site? for example, happens is, if pick 3 threads, 3 threads visit same sites 3 times. how can if listbox has 3 sites in list, 3 threads visit different site in listbox it'll finish faster, , not same sites? help appreciated :) this multithreading code (the code creates threads): checkforillegalcrossthreadcalls = false; var threads = new thread[(int)numericupdown1.value]; (int p = 0; p < (int)numericupdown1.value; p++) { threads[p] = (new thread(() => selectall())); threads[p].start(); } and here method make each thread go to: public void selectall() { (int = 0; i< listbox1.items.count;i++) { listbox1.setselected(i, true); checkforillegalcrossthreadcalls = false; string

TypeIntialization exception when called from BizTalk

i   typeintialization exception when call biztalk   exception while initializing settings  - system.nullreferenceexception: object reference not set instance of object.      but when call winform (as test) it works ok . have un-gaced , re-gaced eai.utils component many times. registry keys exists (it works .net winform test)!!   this code:         private static void initialize()         {             cache = new dictionary < string , object >();               //- double-checked locking             if (configuration == null )             {                 lock (synclock)                 {                     if (configuration == null )                     {                         registrykey regkey = null ;                           try                         {                             regkey = registry .localmachine.opensubkey( @"software\somecompany\eai" );                             configurationfile = p

SSIS EXECUTE SQL TASK

hi on ssis- execute sql task | select * tablename move recordset text file. reporting services configuration tool hi bruce d. gilpin, can use data flow task export data txt file. please refer step step in following link: https://decipherinfosys.wordpress.com/2008/07/23/ssis-exporting-data-to-a-text-file-using-a-package/ thanks, eileen SQL Server  >  SQL Server Integration Services

Regarding Global list

i understand global list can modified team foundation administrators , project administrators. if global list of project being modified someone. how can track has modified global list ? hi, i believe changes global lists tracked internally via changerid column of tfsworkitemtracking.constants table, there's no public api user name of person last updated global list. neither there event fired upon making change global list. please mark post answer if solve problem. thanks! Archived Forums V  >  Team Foundation Server - Project Management & Work Item

Terms used to describe different ways to model inheritance in database

  i'm learning how model inheritance in database , have came across terms believe synonyms.  hope can confirm understanding:   table per class = table per type (tpt) = table per subclass table per abstract class = table per hierarchy (tph)   thanks.   your correct in thinking table per class/subclass synonomous table per type.   however, table per hierarchy means putting data subclasses in 1 table.  example, if customeraddress inherits address address table have addresstype column.   this blog describes strategies modelling class hierarchies you're interested in (although example naive);   http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/09/30/how-to-model-inheritance-in-databases.aspx Architecture  >  Architecture General

Convert decimal data type to COMP-3(Packed Decimal)

hi, need code convert .net decimal datatype comp3 format (byte array) if has alredy done before , appreciated thank you hi, did chance go through below url http://stackoverflow.com/questions/4337912/how-to-convert-unpacked-decimal-back-to-comp-3 best regards muthuraja Visual Studio Languages  ,  .NET Framework  >  Visual C#

CheckOut as Guest

hi all, there requirement during project there no need creating account check out. user treated guest. can user check out guest user, if yes prerequisites set in catalog manager guest user? vijay sagar yes, anonymous checkout possible through commerce server , can find more detail in blog http://microsoftblog.co.in/commerceserver/anonymous-checkout-in-commerce-server/ hope helps regards, -ravi kanth koppala http://techblog.ravikanth.net (if post answers question - either mark post answer or vote being useful.) Commerce Server  >  Commerce Server 2009

garbage collection

how gc find variables need collected?   (how .net find memory references not being used.it construct directed graph of memory variables.when digraph constructed? created compiler or gc in clr? how gc.collect() costly process?) please go through following article. hope that it you. http://msdn.microsoft.com/msdnmag/issues/1100/gci/ regards, jimmy Archived Forums A-B  >  ASMX Web Services and XML Serialization

Using custom XSLT in Biztalk 2010 for comparison

i have requirement need compare records 2 schemas present in source , update destination schema if comparison conditions true. let me explain in little more detail, requirement: i using biztalk 2010. in map, i have 2 schema's (schema 1 , schema 2) in source , 1 destination schema.these schema's contains duplicate/repeating  records. basically, want compare field each record of schema-1 fields of each , every record of schema-2. if comparison true , the, schema-1 fields of record should updated in destination. i have tried looping functoid in map no luck :( is possible custom xslt? if yes - please suggest how go or suggest sample code or resources? thanks in advance. regards, hi yes. possible xslt. use generate-id() function identify duplicate records in xml. http://stackoverflow.com/questions/6768387/removing-duplicates-in-xml-with-xslt thanks, prakash BizTa

I created an array of labels but i cant make the location of them to be on splitContainer1.Panel2

the mode when program on full screen. if in loop im doing labels[loop_through_lables].location = new point(100,100); it put on left side on picturebox1 have wich on panel. but on splitcontainer1.panel2 wich on right side of screen have trackbar , want put labels there. and want each label near trackbar2 line (-) mean each trackbar2 "-"     for (int loop_through_lables = 1; loop_through_lables < trackbar2.maximum; loop_through_lables++) { labels[loop_through_lables] = new label(); this.controls.add(labels[loop_through_lables]); labels[loop_through_lables].size = new size(35, 13); labels[loop_through_lables].location = new point(splitcontainer1.panel2; labels[loop_through_lables].bringtofront(); labels[loop_through_lables].visible = true; labels[loop_through_lables].text = "hello"; }   how make location on splitcontainer1.panel2 , how make each label next trackbar2 value or graphical "-" ?   thanks. danieli hello

how to read the text from the file???

how read text below??   †‰€Ë††‰#îõ‘þüš ꑯõù ‚†Æ’ -#Âª÷‘þü “‘ ª“îù )øþ¦Ã¹Ã½ ¤Âª—ùý î‘õ•Ã¾Ã¸—¤(#•¢Ã¾¢ ø¤÷¢Ã¹ ꑯõù îõ‘þü#^a—ú¤Ã¶^b•¦Ã¸Ã»÷¢Ã°‘ö ¤Ã¹ ¢÷©^cˆˆƒ#‚€ «.: õ¬Ã¸¤Å¡ ›¢Ã¸Ã±#……ˆí/Å¡…/ …€…Å¡}tk{^aˆˆƒ#†/„€€#}bf{#ª“îùû‘ý î‘õ•Ã¾Ã¸—¤Ã½#ª“îùû‘ý î‘õ•Ã¾Ã¸—¤Ã½ -- ¥ÃµÃ¸Ã¶Ã»‘#^c i use code not display characters??? filestream fs = new filestream(open.filename, filemode.open, fileaccess.read); system.text.encoding enc = system.text.encoding.utf8 ; byte [] data = new byte [fs.length]; fs.read(data, 0, data.length); string text = enc.getstring(data);   and show text : †‰â‚¬Ã«†Ã¢€¡Ã¢€°Ã¢#ã®Ã£ÂµÃ¢� �˜Ã£¾Ã£¼Ã¥ ãªâ€˜Ã¢¯Ã£ÂµÃ£¹ â€Å¡Ã¢€ æ’⁠-#âÃ¢ÂªÃ£·Ã¢€˜Ã£¾Ã£¼ â€Å“‘ âªâ€Å“ã®Ã£¹ )ã¸Ã£¾Ã¢¦Ã£¹Ã£½ â¤Ã¢ÂªÃ¢€”ã¹Ã£½ ã®Ã¢€˜Ã£ÂµÃ¢€¢Ã£¾Ã£¸Ã¢€”â¤(#â€� �â¢Ã£¾Ã¢¢Ã¢ ã¸Ã¢¤Ã£·Ã¢¢Ã£¹ ãªâ€˜Ã¢¯Ã£ÂµÃ£¹ ã®Ã£ÂµÃ¢€˜Ã£¾Ã£¼#^a—ãºâ¤Ã¢Ã£¶ ^b•â¦Ã£¸Ã£»Ã£·Ã¢¢Ã£°Ã¢€˜Ã£¶ â¤Ã¢Ã£¹ â¢Ã¢Ã£·Ã¢©^cë†Ã«†Ã¦’â#â€Å¡Ã¢‚ ¬Ã¢ â«.: ãµâ¬Ã£¸Ã¢¤Ã¥ â€ÂºÃ¢¢Ã£¸Ã£±#…âÃ¢€¦Ã«†Ã£­/Ã¥ …/ …ۉÃ¢€¦Ã¥ }tk{^aë†Ã«†Ã¦’â#†/â€Å¾Ã¢‚¬Ã¢‚¬#}bf{#âªâ€Å“ã®Ã£¹Ã£» ‘ã½ ã®Ã¢€˜Ã£ÂµÃ¢€¢Ã£¾Ã£¸Ã¢€

Counter Name

hallo, i making program don't get counter name option %committed bytes in use. can guys please me. thanks lot. silke liefting sl i'm sorry, question isn't clear. these counter name , %commited bytes? please include code you've written, along pointing out problem is? ~~bonnie dewitt [c# mvp] http://geek-goddess-bonnie.blogspot.com Visual Studio Languages  ,  .NET Framework  >  Visual C#

sapAdapter, ErrorGroup=RFC_ERROR_LOGON_FAILURE. SapErrorMessage=Incomplete logon data ???

hi, have scenario need listen sap send data biztalk. biztalk sends success response back. succesfully created reference in visual studio sap rfc using consume adapter service add-in in visual studio. able connect sap system , choose rfc. deployed application in bts. , used binding file created add-in add receive location. provided username , password in other tab. however, when run application, following results.. 1. when receive port started, starts , keeps running, when in trace file, see following error "details: errorcode=rfc_ok. errorgroup=rfc_error_logon_failure. saperrormessage=incomplete logon data.. adaptererrormessage=.". receive port not stop working , stays green. 2. when sap program invoked send data bts, runs, on biztalk side, complete silence. no errors no running processes, no event log entry, nothing @ all. wrong?? make sure have right, built simple app , got same results. added send port input go file. http://msdn.microsoft.com/en-us/library/cc185318

how to keep communicator status as "busy" even I leave pc a long time.

 hello , enveyone i want keep communicator status "busy" time. first time , add code in onmystatuschange event, can't success. second , add timer, in timer add same code.  after 5 min, status change "idle", , code change status "busy" success. after 5 min, code can't change status "busy". why, thanks. the reason why can't change beause idle takes precedence on other status.  can set timeout 360 minutes in options, or write keep machine not idle (move mouse 1 pixel). david moy - lync client sdet Lync Server  ,  Unified Communications  >  Microsoft Lync Client Development

How to use binary search on arrays??

hi am creating 2 arrays related each other.all want retrieve datas using binary search.. string[] country_name ={"america","australia","india","germany" }; foreach (string s in country_name) { console.writeline(s); } string[] currency = { "usd","aud","inr","eur"}; foreach (string c in currency) { console.writeline(c); } code , in snippet want print currency details of specific country through binary search..can me achieve this... in order use binary search, first array must sorted, therefore put country names in alphabetical order, , change currency array correspond country names. if not have write own search procedures, try this: string some_country = "australia"; int = array.binarysearch(country_name, some_country); if (i < 0) {      console.writeline

Connection Pooling and connection leak

could following cause our application leak connections? using (var context = getmyentityconnection()) { //do stuff var myrecord = context.mytable.where(x=> x.id == 1).singleordefault(); //do more stuff } protected myentities getmyentityconnection() { var context = new myentities(getpreparedconnection(fswellknownconnection.mydb)); context.commandtimeout = constants.entity_connection_timeout; return context; } public virtual entityconnection getpreparedconnection(fswellknownconnection connection) { entityconnection con = null; try { con = new entityconnection(getconnectionstring(connection)); con.open(); using (var com = con.storeconnection.createcommand()) { com.commandtype = system.data.commandtype.text; com.commandtext = "set arithabort on;"; com.executenonquery(); } } catch { if (con != null) { con.dispose(); con = null; } throw; } return con; } the usual pattern is to let ef open/c

DataTable add a column,this column's value must be chosed from a given list,HOW?

hello, i want add column datatable, such add sex column,this column has 2 choice:male or female. how can this? thanks, allen allen ppl you can: 1) column's type of string. 2) drag , drop datagridview onto winform. 3) cancel "autogeneratecolumns" add manually columns, "sex" column, please use datagridviewcomboboxcolumn, datasource should bound one, displaymember property, , valuemember one, valuemember must either "male" or "female". 4) see this: http://stackoverflow.com/questions/13829621/bindingsource-with-datagridview-combo-box if think 1 reply solves problem, please mark an answer , if think someone's reply helps you, please mark proposed answer help clicking: click here donate rice poor click donate click feed dogs & cats found spamming-senders? please report at: spam report Visual Studio Languages