Click here to Skip to main content
15,894,405 members
Home / Discussions / C#
   

C#

 
GeneralRe: LCG issue (DynamicMethod / ILGenerator) [modified] Pin
rcollina13-Jan-07 13:45
rcollina13-Jan-07 13:45 
GeneralRe: LCG issue (DynamicMethod / ILGenerator) Pin
S. Senthil Kumar13-Jan-07 21:07
S. Senthil Kumar13-Jan-07 21:07 
GeneralRe: LCG issue (DynamicMethod / ILGenerator) [modified] Pin
rcollina14-Jan-07 2:27
rcollina14-Jan-07 2:27 
GeneralRe: LCG issue (DynamicMethod / ILGenerator) Pin
rcollina15-Jan-07 14:02
rcollina15-Jan-07 14:02 
GeneralRe: LCG issue (DynamicMethod / ILGenerator) Pin
rcollina17-Jan-07 13:28
rcollina17-Jan-07 13:28 
GeneralRe: LCG issue (DynamicMethod / ILGenerator) Pin
S. Senthil Kumar17-Jan-07 17:51
S. Senthil Kumar17-Jan-07 17:51 
GeneralRe: LCG issue (DynamicMethod / ILGenerator) Pin
rcollina20-Jan-07 10:02
rcollina20-Jan-07 10:02 
QuestionFinding a Sorted DataGridView row in a Dataset Pin
efriese112-Jan-07 4:21
efriese112-Jan-07 4:21 
I have a sorted DataGridView and I need to make a change to the DataSet that is bound to the DataGridView. Here's the code I'm using:

void DataGrid_CellValueChanged(object sender, DataGridViewCellEventArgs e)<br />
{<br />
      BindingManagerBase bindingManager = null;<br />
      bindingManager = DataGrid.BindingContext[DataGrid.DataSource, DataGrid.DataMember];<br />
      DataRow findRow = ((DataRowView)bindingManager.Current).Row;<br />
      int datasetIndex = DataSet.Tables["table1"].Rows.IndexOf(findRow);<br />
}


From what I understand, the IndexOf() method should take the row and find the index of it in the dataset. My problem is it's always coming back as 0. Can anyone see a problem with my code. Thanks!

KubeLife.com
AnswerRe: Finding a Sorted DataGridView row in a Dataset Pin
Mircea Puiu12-Jan-07 4:34
Mircea Puiu12-Jan-07 4:34 
GeneralRe: Finding a Sorted DataGridView row in a Dataset Pin
efriese112-Jan-07 4:53
efriese112-Jan-07 4:53 
GeneralRe: Finding a Sorted DataGridView row in a Dataset Pin
Mircea Puiu12-Jan-07 5:00
Mircea Puiu12-Jan-07 5:00 
GeneralRe: Finding a Sorted DataGridView row in a Dataset Pin
efriese112-Jan-07 5:09
efriese112-Jan-07 5:09 
GeneralRe: Finding a Sorted DataGridView row in a Dataset Pin
Mircea Puiu12-Jan-07 5:12
Mircea Puiu12-Jan-07 5:12 
GeneralRe: Finding a Sorted DataGridView row in a Dataset Pin
efriese112-Jan-07 5:19
efriese112-Jan-07 5:19 
GeneralRe: Finding a Sorted DataGridView row in a Dataset Pin
Mircea Puiu12-Jan-07 5:20
Mircea Puiu12-Jan-07 5:20 
GeneralRe: Finding a Sorted DataGridView row in a Dataset Pin
efriese112-Jan-07 5:28
efriese112-Jan-07 5:28 
AnswerRe: Finding a Sorted DataGridView row in a Dataset Pin
Drew McGhie12-Jan-07 9:55
Drew McGhie12-Jan-07 9:55 
QuestionMake a web browser that work in single window Pin
Par Witch12-Jan-07 4:15
Par Witch12-Jan-07 4:15 
AnswerRe: Make a web browser that work in single window Pin
Mircea Puiu12-Jan-07 4:28
Mircea Puiu12-Jan-07 4:28 
GeneralRe: Make a web browser that work in single window Pin
Par Witch12-Jan-07 5:20
Par Witch12-Jan-07 5:20 
GeneralRe: Make a web browser that work in single window Pin
Mircea Puiu12-Jan-07 5:26
Mircea Puiu12-Jan-07 5:26 
GeneralRe: Make a web browser that work in single window Pin
Par Witch12-Jan-07 5:44
Par Witch12-Jan-07 5:44 
Questiontesting a project Pin
quiteSmart12-Jan-07 3:40
quiteSmart12-Jan-07 3:40 
AnswerRe: testing a project Pin
ednrgc12-Jan-07 3:48
ednrgc12-Jan-07 3:48 
GeneralRe: testing a project Pin
quiteSmart12-Jan-07 3:51
quiteSmart12-Jan-07 3:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.