Results 1 to 3 of 3

Thread: Datagrid caption does not update

  1. #1

    Thread Starter
    Addicted Member Cristian's Avatar
    Join Date
    Jun 2006
    Posts
    228

    Talking Datagrid caption does not update

    I have a form that contains a datagrid control. This form call another form and from that form i change the datagrid caption property. When i show the form that contains the datagrid, the property caption it have not changed. But if i give it the focus the property is updated.
    I After change the property value call the refresh method on the datagrid, But that not update the datagrid display
    If somebody has the answer i will thank it a lot

  2. #2
    Frenzied Member
    Join Date
    Jul 2009
    Posts
    1,103

    Re: Datagrid caption does not update

    Quote Originally Posted by Cristian View Post
    I have a form that contains a datagrid control.
    Did you mean a DataGridView control

    Quote Originally Posted by Cristian View Post
    This form call another form and from that form i change the datagrid caption property.
    Is it the caption property ?

    If you find my reply helpful , then rate it

  3. #3
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: Datagrid caption does not update

    You must have something wrong in your code...
    I just tested that and the caption changed, and the form was in the background and not focused...
    Something like:
    vb.net Code:
    1. Form1.DataGrid1.CaptionText = "New Caption"

    Rate People That Helped You
    Mark Thread Resolved When Resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width