all groups > dotnet windows forms databinding > may 2007 >
You're in the

dotnet windows forms databinding

group:

Sorting and Editing datagrid


Sorting and Editing datagrid Sridhar
5/4/2007 1:56:00 PM
dotnet windows forms databinding: Hi,

I'm using .NET 1.1. I have a datagrid on my form and is binded to a dataview
of datatable. When the user changes the value in any cell and press Enter(or
any key) to move to a different cell, then the entire row is calculated and
displays the calculated values.

But when the user sorts the column and changes the value in any cell in that
column, I'm getting an error, and sometimes the entered value is displayed on
a different row.

In my datagrid, I have a "Total" row which always remains at the bottom even
after the user sorts any column.

Could someone please help me how to perform the calculations based on the
value entered for that particular row.

Re: Sorting and Editing datagrid Bryan Phillips
5/13/2007 12:18:19 AM
Where is the calculation being performed? Are you handling an event
exposed by the datagrid or your datatable?

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



[quoted text, click to view]
AddThis Social Bookmark Button