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

C#

 
AnswerRe: how made a factor i c# Pin
Nathan Stiles23-Jan-12 10:46
Nathan Stiles23-Jan-12 10:46 
QuestionCreate XML file with C# Pin
RivasBoy21-Jan-12 7:26
RivasBoy21-Jan-12 7:26 
AnswerRe: Create XML file with C# Pin
Eddy Vluggen21-Jan-12 11:24
professionalEddy Vluggen21-Jan-12 11:24 
AnswerRe: Create XML file with C# Pin
Nathan Stiles23-Jan-12 10:48
Nathan Stiles23-Jan-12 10:48 
Question.NET Framework 4.0 and 2.0 Pin
MAW3020-Jan-12 11:23
MAW3020-Jan-12 11:23 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
Richard Andrew x6420-Jan-12 11:54
professionalRichard Andrew x6420-Jan-12 11:54 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
jschell20-Jan-12 12:42
jschell20-Jan-12 12:42 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
Shameel20-Jan-12 18:57
professionalShameel20-Jan-12 18:57 
AnswerRe: .NET Framework 4.0 and 2.0 Pin
PIEBALDconsult21-Jan-12 3:12
mvePIEBALDconsult21-Jan-12 3:12 
QuestionSize Image in PictureBox Pin
Steve Harp20-Jan-12 9:40
Steve Harp20-Jan-12 9:40 
AnswerRe: Size Image in PictureBox Pin
Dave Kreskowiak20-Jan-12 10:29
mveDave Kreskowiak20-Jan-12 10:29 
AnswerRe: Size Image in PictureBox Pin
Richard MacCutchan20-Jan-12 22:06
mveRichard MacCutchan20-Jan-12 22:06 
AnswerRe: Size Image in PictureBox Pin
Luc Pattyn20-Jan-12 22:41
sitebuilderLuc Pattyn20-Jan-12 22:41 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan20-Jan-12 23:04
mveRichard MacCutchan20-Jan-12 23:04 
GeneralRe: Size Image in PictureBox Pin
Steve Harp23-Jan-12 5:33
Steve Harp23-Jan-12 5:33 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan23-Jan-12 6:35
mveRichard MacCutchan23-Jan-12 6:35 
AnswerRe: Size Image in PictureBox Pin
Luc Pattyn23-Jan-12 16:07
sitebuilderLuc Pattyn23-Jan-12 16:07 
GeneralRe: Size Image in PictureBox Pin
Richard MacCutchan23-Jan-12 23:07
mveRichard MacCutchan23-Jan-12 23:07 
QuestionDataBinding Pin
MWRivera20-Jan-12 9:37
MWRivera20-Jan-12 9:37 
Hi All,

I have an array of UserRights (class that holds the rights for an individual table) called arrTables and an array of controls called arrControls (10 of each type of control needed). The arrControls are displayed/listed on a Windows form (TableName, ViewRights, EditRights...) so that the data for 10 tables can be viewed at one time. I've bound the data to the form controls using the following code:

C#
for (int iLoop = 0; iLoop < 10; iLoop++)
{
    ctrlQAControls[iLoop, 0].DataBindings.Clear();
    ctrlQAControls[iLoop, 0].DataBindings.Add(new Binding("Text", arrTables, "TableName"));
    currencyMgr.Position++;
}


When I try and display the form to the user data from the 10th table stored in the arrTables array is displayed in all 10 sets of controls. I learnt that the CurrencyManager holds the value of the Current possition and that is the reason for these results.

Is there a way around or an alternative way to implement this without hacing to use a datGridView or other list control?

Thank you
AnswerRe: DataBinding Pin
Dave Kreskowiak20-Jan-12 10:27
mveDave Kreskowiak20-Jan-12 10:27 
GeneralRe: DataBinding Pin
MWRivera25-Jan-12 9:11
MWRivera25-Jan-12 9:11 
AnswerRe: DataBinding Pin
BobJanova22-Jan-12 12:46
BobJanova22-Jan-12 12:46 
GeneralRe: DataBinding Pin
MWRivera25-Jan-12 3:46
MWRivera25-Jan-12 3:46 
QuestionObject naming convention Pin
Ciumac Sergiu20-Jan-12 9:24
Ciumac Sergiu20-Jan-12 9:24 
AnswerMessage Removed Pin
20-Jan-12 9:49
professionalN_tro_P20-Jan-12 9:49 

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.