RE: Grid Control: how properly add data to new row?

new topic     » topic index » view thread      » older message » newer message

Dan,

Phil is aware of a couple of issues that sound like it might relate to 
your problem and I think he's working on a fix for this.

In the meantime, I will try and help, if possible.  Could you send a 
more complete example of the code you're having a problem with?

Also, here's one thing you might want to try.  I don't have the exact 
code in front of me but you might try using the repaintWindow() function 
after adding the new grid row.  This might cause the new row to display 
properly.

Jonas
Dan Moyer wrote:
> Phil,
> 
> I'm trying out your Grid Control, however, I am having a problem filling
> things in the grid properly, in that when I add a new row, the last 
> column
> doesn't show
> anything except the same thing that's in the first column.
> 
> Maybe you or someone who has used the GridControl can see what I'm doing
> wrong?
> 
> --<code snippet follows:>
> 
> -- grid column layout is:  file name, checkbox1, checkbox2, directory 
> name
>   newRow = {fName,"","",dirName }
> -- dirName & fName DO have respective proper content, I checked
> 
> --global constant EmptyGridRow = {"", 2, "", "", 0, True}  -- example 
> from a
> demo
>                                                                             
>         --for a different layout
> 
>   -- Add new row to grid:
>   row = EGW_AddDataRow(aGrid, newRow, EGW_LAST)
>   void = EGW_SetDataRowFlag(aGrid, row, EGW_ROW_NEW, True)
> 
> -- also fails to include dirName if I comment out the above "void" 
> function
> 
> Dan Moyer
> 
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu