Windows Develop Bookmark and Share   
 index > Windows Forms General > How to Remove Grid View Row
 

How to Remove Grid View Row

How to Remove Grid View Row at runtime.Please!SomeOne answer to me.Which use Event.I already use CellEnter Event,RowValidated Event And RowValidating Event But
This events saw can't handle row delete.Please answer to me.Thank
CyberArchitect  Wednesday, September 23, 2009 4:40 AM
Hi,
i hope it will help you
private void button1_Click(object sender, EventArgs e)
        {
            dataGridView1.Rows.Remove(dataGridView1.Rows[0]);
        }

Best Regards, C.Gnanadurai ----------------------- Please mark the post as answer if it is helpfull to you
Gnanadurai  Wednesday, September 23, 2009 5:00 AM
Hi,
i hope it will help you
private void button1_Click(object sender, EventArgs e)
        {
            dataGridView1.Rows.Remove(dataGridView1.Rows[0]);
        }

Best Regards, C.Gnanadurai ----------------------- Please mark the post as answer if it is helpfull to you
Gnanadurai  Wednesday, September 23, 2009 5:00 AM

You can use google to search for other answers

Custom Search

More Threads

• Closing monthcalendar after selecting a date (C#)
• Are there globalization tools like "Generate Local Resource" available for Windows Forms Applications ?
• Windows form with ? and X in top right corner
• parent-child forms
• Getting data back from a dialog?
• Redrawing Listbox with updated information
• parameters exception
• getting ActiveX control pointer in C# windows form application
• WebBrowser Control Printing
• MonthCalendar bolded dates