I have a dynamic datat, which is made from database. I want to add a new line (empty), so there is an option to choose nothing in a cobbx. Everything works fine without adding a new line, but when I add a new line, the compbox does not show anything. What am I missing?
Here is the code
DIT DT = DS as new DTT DT. Tabs ("Callstats") retreated as Detroit = DT. NewRow 'New Line Dawnwow. ITEM ("CampaignScLASTATIDIDIDID") = "" DANVANO Item ("campaign calestats") = "" dt. Add Rhodes. Add (DNEERRO) DT. Acept change () 'Fill the' Cobbboxi 'with COBALAstatus. Datasource = DT. Displaymeal = "campaignclusts"
I found a solution I used the method InsertAt Done, and placed the row in the top.
DT as new Datatable DT = DS DS Tables ("CallStatus") as slow drNewRow DataRow = DT. NewRow DT. . (DNEERRO, 0) '& lt; == This solution is DT.AcceptChanges () with cboCallStatus .datasource = DT. Displaymil = "CampaignClustStatus" .volumeman = "CampaignColstusID" end with cboCallStatus.Refresh ()
Comments
Post a Comment