datagridview column naming

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chalkie

    #1

    datagridview column naming

    Hello,

    I've hit what appears to be a serious problem with an unbound datagridview control that Ive added to
    a VB.Net program. Inadvertently I named one column 'Name' and a second 'Size'. The designer allowed
    me to do it but when I came to run the program the designer reported an error and looking at the
    error messages it it confusing the datagridview column with the form on which the control resides. I
    can't delete the datagridviw because I get the error message whenever I try to access the design
    view of the form.

    The error highlighted is at the point when the designer is assigning a text value to the form name,
    as in Me.Name = "frmForm". It reports that a string value cannot be converted to a
    datagridview.te xtboxcolumn. There is a prior assignemtn of me.name = new datagridviewtex tcolumn.


    How do I remove the offending column(s) or datagridview ?


    Thanks



  • =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?=

    #2
    RE: datagridview column naming

    try to manually rename those columns in the form's designer code

    "Chalkie" wrote:
    Hello,
    >
    I've hit what appears to be a serious problem with an unbound datagridview control that Ive added to
    a VB.Net program. Inadvertently I named one column 'Name' and a second 'Size'. The designer allowed
    me to do it but when I came to run the program the designer reported an error and looking at the
    error messages it it confusing the datagridview column with the form on which the control resides. I
    can't delete the datagridviw because I get the error message whenever I try to access the design
    view of the form.
    >
    The error highlighted is at the point when the designer is assigning a text value to the form name,
    as in Me.Name = "frmForm". It reports that a string value cannot be converted to a
    datagridview.te xtboxcolumn. There is a prior assignemtn of me.name = new datagridviewtex tcolumn.
    >
    >
    How do I remove the offending column(s) or datagridview ?
    >
    >
    Thanks
    >
    >
    >
    >

    Comment

    Working...