Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: (X^2)(4sinY) Pin
Henry Minute5-Sep-09 9:47
Henry Minute5-Sep-09 9:47 
GeneralRe: (X^2)(4sinY) Pin
Luc Pattyn5-Sep-09 11:10
sitebuilderLuc Pattyn5-Sep-09 11:10 
GeneralRe: (X^2)(4sinY) Pin
See_Sharp5-Sep-09 12:56
See_Sharp5-Sep-09 12:56 
Questiongetting the selectedItem in a checkedListBox from another method Pin
Twyce5-Sep-09 5:11
Twyce5-Sep-09 5:11 
AnswerRe: getting the selectedItem in a checkedListBox from another method Pin
Henry Minute5-Sep-09 5:27
Henry Minute5-Sep-09 5:27 
AnswerRe: getting the selectedItem in a checkedListBox from another method Pin
DaveyM695-Sep-09 5:35
professionalDaveyM695-Sep-09 5:35 
GeneralRe: getting the selectedItem in a checkedListBox from another method Pin
Henry Minute5-Sep-09 6:29
Henry Minute5-Sep-09 6:29 
AnswerRe: getting the selectedItem in a checkedListBox from another method Pin
Swetha Srinivasan6-Sep-09 18:52
Swetha Srinivasan6-Sep-09 18:52 
Lets name the checklistbox as table list.whenever an item is checked or unchecked just add them to a data table(_selectedTables).
<br />
 private void tableList_ItemCheck(object sender, ItemCheckEventArgs e)<br />
        {            <br />
            string names = tableList.GetItemText(tableList.Items[e.Index]);<br />
           <br />
            CheckState currentState=e.NewValue;<br />
            <br />
            if (currentState.ToString() == "Checked")<br />
            {<br />
                DataRow newRow = _selectedTables.NewRow();<br />
                _selectedTables.Rows.Add(newRow);<br />
                newRow["Table"] = names;<br />
            }<br />
            else<br />
            {<br />
                DataRow[] dr = _selectedTables.Select("Table = '" + names + "'");<br />
                if (dr.Length > 0)<br />
                    _selectedTables.Rows.Remove(dr[0]);<br />
            }<br />
        }<br />

And then use this method to retrieve the selection
public DataTable ReturnSelectedTables<br />
       {<br />
           get<br />
           {<br />
               return _selectedTables;<br />
           }<br />
       }


Hope this helps you.
QuestionHelp for searching in phonebook Pin
sh.alamdari5-Sep-09 4:25
sh.alamdari5-Sep-09 4:25 
AnswerRe: Help for searching in phonebook Pin
Richard MacCutchan5-Sep-09 4:47
mveRichard MacCutchan5-Sep-09 4:47 
AnswerRe: Help for searching in phonebook Pin
Arindam Sinha5-Sep-09 5:18
Arindam Sinha5-Sep-09 5:18 
Question2WebBrowsers like in 2 Apps Pin
AmirNapster5-Sep-09 4:18
AmirNapster5-Sep-09 4:18 
AnswerRe: 2WebBrowsers like in 2 Apps Pin
Arindam Sinha5-Sep-09 5:21
Arindam Sinha5-Sep-09 5:21 
GeneralRe: 2WebBrowsers like in 2 Apps Pin
AmirNapster5-Sep-09 5:30
AmirNapster5-Sep-09 5:30 
GeneralRe: 2WebBrowsers like in 2 Apps Pin
Arindam Sinha5-Sep-09 7:05
Arindam Sinha5-Sep-09 7:05 
AnswerRe: 2WebBrowsers like in 2 Apps Pin
Not Active5-Sep-09 6:21
mentorNot Active5-Sep-09 6:21 
QuestionDynamic Image at Crystal Report 11 Pin
Syed Shahid Hussain5-Sep-09 4:17
Syed Shahid Hussain5-Sep-09 4:17 
Questionentering datas in dropdownlist Pin
atiskumar5-Sep-09 3:09
atiskumar5-Sep-09 3:09 
AnswerRe: entering datas in dropdownlist Pin
Manas Bhardwaj5-Sep-09 3:25
professionalManas Bhardwaj5-Sep-09 3:25 
QuestionAmount of items in List<string> has changed while running a loop</string> Pin
softwarejaeger5-Sep-09 2:34
softwarejaeger5-Sep-09 2:34 
AnswerRe: Amount of items in List has changed while running a loop Pin
OriginalGriff5-Sep-09 2:47
mveOriginalGriff5-Sep-09 2:47 
QuestionApplication Trial And StreamRead/Writer Pin
Ben Magee5-Sep-09 1:34
Ben Magee5-Sep-09 1:34 
AnswerRe: Application Trial And StreamRead/Writer Pin
Henry Minute5-Sep-09 1:43
Henry Minute5-Sep-09 1:43 
GeneralRe: Application Trial And StreamRead/Writer Pin
Ben Magee5-Sep-09 2:14
Ben Magee5-Sep-09 2:14 
GeneralRe: Application Trial And StreamRead/Writer Pin
Henry Minute5-Sep-09 3:11
Henry Minute5-Sep-09 3:11 

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.