Groups | Blog | Home
all groups > dotnet windows forms databinding > may 2007 >

dotnet windows forms databinding : RowDataBound like event?


GaryDean
5/17/2007 12:23:01 PM
In asp.net the GridView has a RowDataBound event - really handy. What event
replaces this in the Forms DataGridView?

--
Regards,
Gary Blakely

v-lliu NO[at]SPAM online.microsoft.com
5/18/2007 12:00:00 AM
Hi Gary,

In ASP.NET, the RowDataBound event of GridView is raised when a data row
(represented by a GridViewRow object) is bound to data in the GridView
control.

There's no exact counterpart of the RowDataBound event for the WinForms
DataGridView. But if you'd like to change the displayed text before the
value of a cell is rendered, you could handle the CellFormatting event of
the DataGridView.

For more information on DataGridView.CellFormatting event, you may read the
following MSDN document:

'DataGridView.CellFormatting Event '
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.c
ellformatting.aspx

If my suggestion is not what you want, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
AddThis Social Bookmark Button