vb.net - Trying to move items from one to the other -


]i having strange problem when try move items 1 grid view using bindingsource adding in blank row reason

private sub btnmove_click(sender system.object, e system.eventargs) handles btnmove.click     dim bs new bindingsource     dim integer     dim removelist list(of inforemotefiles) = filelist     = 0 grdavailfiles.selectedrows.count          grdprocessfiles.rows.add(grdavailfiles.rows(a).cells("filename").value)          removelist.removeall(function(p inforemotefiles) p.filename = grdavailfiles.rows(a).cells("filename").value)       next     bs.datasource = removelist     grdavailfiles.datasource = bs  end sub 

please see mean row below have selected dont no comming thanks

enter image description here

the blank row added automatically if have allowusertoaddrows property set true on datagridview control.

from documentation:

if datagridview bound data, user allowed add rows if both property , data source's ibindinglist.allownew property set true.

on separate note, shouldn't have create anew binding source (for source data grid). instead, modify collection bound datasource property.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -