Duy Lam
11/27/2007 2:52:00 PM
Marc Gravell wrote:
> The "DataGridViewTextBoxColumn" (and the "windowsforms" group in the
> cross-post) indicates that this is windows-forms, not asp.net, but
> this is an easy mistake to make when it isn't clear.
>
> For the OP's benefit - if you limit yourself to a single appropriate
> group (such as windowsforms) then this type of mixup is avoided. For
> future questions, you might want to consider
> microsoft.public.dotnet.framework.windowsforms.databinding.
>
> DataGridView (winform) only supports direct properties for columns.
> Adding a facade method could be an option if you own the class. If
> not, there are some other (more complex) tricks you can use to provide
> a runtime shadow property. Let me know if you need this, but note that
> a facade method is preferable for simplicity, i.e.
>
> public string EmployeeName { // facade to Employee.Name
> get {return Employee.Name;}
> set {Employee.Name = value;}
> }
>
> Marc
>
>
Oh, I'm sorry :)
--
Duy Lam Phuong