Click here to Skip to main content
15,921,643 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionMemory is not Released in Windows Application when ever any Form is Closed Pin
k_kedarnadh28-Oct-09 20:52
k_kedarnadh28-Oct-09 20:52 
AnswerRe: Memory is not Released in Windows Application when ever any Form is Closed Pin
Luc Pattyn29-Oct-09 4:06
sitebuilderLuc Pattyn29-Oct-09 4:06 
AnswerRe: Memory is not Released in Windows Application when ever any Form is Closed Pin
Dave Kreskowiak31-Oct-09 11:35
mveDave Kreskowiak31-Oct-09 11:35 
Questionproblem with datatable [modified] Pin
Sider8926-Oct-09 9:10
Sider8926-Oct-09 9:10 
AnswerRe: problem with datatable Pin
Henry Minute26-Oct-09 10:20
Henry Minute26-Oct-09 10:20 
GeneralRe: problem with datatable Pin
Sider8926-Oct-09 23:53
Sider8926-Oct-09 23:53 
GeneralRe: problem with datatable Pin
Henry Minute27-Oct-09 3:02
Henry Minute27-Oct-09 3:02 
AnswerRe: problem with datatable Pin
AhmedMasum28-Oct-09 1:15
AhmedMasum28-Oct-09 1:15 
Try the following. It may help you. Remember that you have to initialize check box values at first.

private void Form1_Load(object sender, EventArgs e)
        {         
            int p = dataGridView1.Rows.Add();
            dataGridView1.Rows[p].Cells[0].Value = true.ToString();
           dataGridView1.Rows[p].Cells[1].Value = false.ToString();
         

        }


Handle the following event of datagridview

private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
                       
            if (dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString().Equals(false.ToString()))
            {
                dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = true.ToString();

                MessageBox.Show("true");
            }
            else
            {

                dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = false.ToString();

                MessageBox.Show("false");
            }
                
        }


call the method in appropriate if else condition.
Questionpaging datagridview in vb.net Pin
vikas shukla26-Oct-09 1:12
vikas shukla26-Oct-09 1:12 
AnswerRe: paging datagridview in vb.net Pin
Ashfield26-Oct-09 3:21
Ashfield26-Oct-09 3:21 
AnswerRe: paging datagridview in vb.net Pin
Henry Minute26-Oct-09 4:40
Henry Minute26-Oct-09 4:40 
GeneralRe: paging datagridview in vb.net Pin
AhmedMasum28-Oct-09 1:30
AhmedMasum28-Oct-09 1:30 
GeneralRe: paging datagridview in vb.net Pin
Henry Minute28-Oct-09 1:34
Henry Minute28-Oct-09 1:34 
GeneralRe: paging datagridview in vb.net Pin
AhmedMasum28-Oct-09 1:53
AhmedMasum28-Oct-09 1:53 
AnswerRe: paging datagridview in vb.net Pin
AhmedMasum28-Oct-09 1:52
AhmedMasum28-Oct-09 1:52 
QuestionDynamic Splitter window to Split a MDI Child Window into Panes Pin
Brian C Hart22-Oct-09 9:10
professionalBrian C Hart22-Oct-09 9:10 
AnswerRe: Dynamic Splitter window to Split a MDI Child Window into Panes Pin
Shameel27-Oct-09 0:19
professionalShameel27-Oct-09 0:19 
GeneralRe: Dynamic Splitter window to Split a MDI Child Window into Panes Pin
Brian C Hart27-Oct-09 12:26
professionalBrian C Hart27-Oct-09 12:26 
GeneralRe: Dynamic Splitter window to Split a MDI Child Window into Panes Pin
Richard MacCutchan27-Oct-09 13:04
mveRichard MacCutchan27-Oct-09 13:04 
GeneralTracking activity in a WebBrowser control from a Windows Form Host Pin
Brady Kelly22-Oct-09 5:49
Brady Kelly22-Oct-09 5:49 
GeneralRe: Tracking activity in a WebBrowser control from a Windows Form Host Pin
AhmedMasum28-Oct-09 1:49
AhmedMasum28-Oct-09 1:49 
Questionhow to prevent the user from moving to the clicked cell in DataGridView ? Pin
alladeen21-Oct-09 13:11
alladeen21-Oct-09 13:11 
AnswerRe: how to prevent the user from moving to the clicked cell in DataGridView ? Pin
Mycroft Holmes21-Oct-09 13:29
professionalMycroft Holmes21-Oct-09 13:29 
GeneralRe: how to prevent the user from moving to the clicked cell in DataGridView ? Pin
alladeen21-Oct-09 20:24
alladeen21-Oct-09 20:24 
GeneralRe: how to prevent the user from moving to the clicked cell in DataGridView ? Pin
molesworth22-Oct-09 7:03
molesworth22-Oct-09 7:03 

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.