modifying datagridview cells at runtime

  • Thread starter Thread starter BillE
  • Start date Start date
B

BillE

How can I change the value of a cell in a datagridview in a vb.net windows
forms application, based on the value of another cell?

In a web forms grid, there is a "RowDataBound" event where I can do this,
but I can't find a comparable event in the windows forms version of the
datagridview.

Thanks
Bill
 
How can I change the value of a cell in a datagridview in a vb.net
windows forms application, based on the value of another cell?

In a web forms grid, there is a "RowDataBound" event where I can do
this, but I can't find a comparable event in the windows forms version
of the datagridview.

Web forms have these events as the binding is not two way. With a
windows forms app, it is better to massage the Data set prior to
binding.

This can be done by altering the query so it has the aggregates you are
looking for, or looping through the Data set to create the extra column
of information.

if there is a way to shortcircuit the bind, I don't know it.

Peace and Grace,


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Thanks.
Bill
Gregory A. Beamer said:
Web forms have these events as the binding is not two way. With a
windows forms app, it is better to massage the Data set prior to
binding.

This can be done by altering the query so it has the aggregates you are
looking for, or looping through the Data set to create the extra column
of information.

if there is a way to shortcircuit the bind, I don't know it.

Peace and Grace,


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top