On Monday 01 October 2007 10:29, Ed Leafe wrote:
> On Oct 1, 2007, at 1:06 PM, johnf wrote:
> > BTW this is how I wanted to do it
> > myvalue=self.Form. somefunction()
> > self.lkgrid.Columns[0].DataField = myvalue
>
> 'DataField' is the *name* of the column in the data to display in
> that grid column. There's no way that anything like this would work.
>
> > But in Larry's case I did not know how to take input for the cell.
> > Recall
> > Larry's case was both display and input from the user covered. So
> > he used
> > the setter and getter of the cell.
>
> Assuming that there is some formatting function called 'fmt' that
> takes a value and a condition and returns what you want, this is very
> simple to do with DataSets.
>
> grid.DataSet.replace("displaycol", "=fmt(weightCol, 'kilos')")
> grid.update()
>
> -- Ed Leafe
Thanks.
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]