modifying datagridview cells at runtime

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
 
G

Gregory A. Beamer

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! |
*******************************************
 
B

BillE

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! |
*******************************************
 

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

Top