How to invoke the Binding.Format event in DataGrid?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wrote this
Binding b=new Binding("DataSource", dataset1, "TableName")
b.Format+=new ConvertEventHandler(FormatFunction)
dataGrid1.DataBindings.Add(b)

But it didn't work. I mean, the function "FormatFunction" was neve
called. Please do me a favor

Thanks a lot!!
 
Check the function is formatted correctly to accept the
return objects, or get VS.NET to create the event handler
for you.
 
Back
Top