Click here to Skip to main content
16,018,092 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm using DataGridview and textboxes[columns of DataGridview] in my form and want to
appear DataGrid rows in Textboxes

First i Bind my textboxes and using objectcurrencymanager and cellclick event of grid change the textboxes contents.

C#
private void EqualRegGrid_CellClick(object sender, DataGridViewCellEventArgs e)
      {
          objCurrencyManager.Position = e.RowIndex;
      }

========================================

Problem is when i click column header and order of rows changed and objcurrencymanager return data by row number.
how solve this problem?
Posted

1 solution

It's not really clear but it sounds like you want to make your control not sortable. http://msdn.microsoft.com/en-us/library/95scxcdy.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900