edit or update problem
-
Hi, I am going to edit and update record in datagrid , every time I am able to edit or update one record and again I m going to click button of grid view getting this error “Cannot set the SelectedValue in a ListControl with an empty ValueMember.” .. then again close to application and able to do edit and update any one record…
Vinay
-
Hi, I am going to edit and update record in datagrid , every time I am able to edit or update one record and again I m going to click button of grid view getting this error “Cannot set the SelectedValue in a ListControl with an empty ValueMember.” .. then again close to application and able to do edit and update any one record…
Vinay
Your explanation made absolutely no sense what-so-ever.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
Hi, I am going to edit and update record in datagrid , every time I am able to edit or update one record and again I m going to click button of grid view getting this error “Cannot set the SelectedValue in a ListControl with an empty ValueMember.” .. then again close to application and able to do edit and update any one record…
Vinay
Hi Vinay, With this minimum explanation, it seems that you are using data binding. Also, you have some ListControl in your form as well which is related to the same datasource (i.e. same datatable might be used for Grid and that control). This list control does not have blank value in its master data. Verify this one otherwise try to debug (setting break points whereever ValueMember is set) your code to find out where you are getting the error.