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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top