dataMemember reference row in table
-
I am trying to bind a control to this dataset and have been successful thus far, problem is I want to be able to specify the row in the table the control is binding to. Apologize for any ineptitudes in advanced, very new to this. sample: newTBox.DataBindings.Add("Text", _Data, _tableName + "." + field, false); I want to do something like this: newTBox.DataBindings.Add("Text", _Data, _tableName + "[" + _rowNumber + "]" + "." + field, false); right now it is always binding to the 0th row in my table. Thanks in advance
-
I am trying to bind a control to this dataset and have been successful thus far, problem is I want to be able to specify the row in the table the control is binding to. Apologize for any ineptitudes in advanced, very new to this. sample: newTBox.DataBindings.Add("Text", _Data, _tableName + "." + field, false); I want to do something like this: newTBox.DataBindings.Add("Text", _Data, _tableName + "[" + _rowNumber + "]" + "." + field, false); right now it is always binding to the 0th row in my table. Thanks in advance
-
No I am working with a supplied dataset, so I will have to navigate through it properly. I am trying now to get something like this to work: ("Checked", Data.Tables[_tableName].Rows[_rowIndex], field, false); don't think thats gonna hack it though help!:confused:
-
I am trying to bind a control to this dataset and have been successful thus far, problem is I want to be able to specify the row in the table the control is binding to. Apologize for any ineptitudes in advanced, very new to this. sample: newTBox.DataBindings.Add("Text", _Data, _tableName + "." + field, false); I want to do something like this: newTBox.DataBindings.Add("Text", _Data, _tableName + "[" + _rowNumber + "]" + "." + field, false); right now it is always binding to the 0th row in my table. Thanks in advance
-
Still cant figure this out here is my poopy code: newTBox.DataBindings.Add("Text", _Data.Tables[_tableName].Rows[_rowIndex], _tableName + "." + field, false);
Use a DataView to filter your original dataset and bind the dataview to your controls. SG
-
Use a DataView to filter your original dataset and bind the dataview to your controls. SG