CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    73

    Post DataGridView CellBorderStyle's Bottom Line - Remove?

    Hi,
    Iam using VC++2010.

    I have a DataGridView called MyDataGrid1, and based on a field value I need to hide the bottom line for certain rows.

    // Declared in Top
    Private: static DataTable^ MyStudentsDtb = gcnew DataTable();

    Form_load()

    MyStudentsDtb->Columns->Add("sl_no", System::Type::GetType("System.String"));
    MyStudentsDtb->Columns->Add("standard",System::Type::GetType("System.String"));
    MyStudentsDtb->Columns->Add("student_section", System::Type::GetType("System.String"));
    MyStudentsDtb->Columns->Add("no_of_student", System::Type::GetType("System.Int32"));

    MyDataGrid1->DataSource = MyStudentsDtb;


    My Requirement...
    01. Once the user enters '20' in no_of_student columns, then I want to remove the CellBorder Lines on that row and further 19 rows below to that CurrentRow, Is this possible?

    02. Also when I check the table other than Form_load its not showing its rows, simply it says, zero rows... To access that datatable with its data, to other events & handles I don't know to do.....
    Any Ideas will be welcome...


    Thanks For The Help..
    Last edited by MAHEY; April 30th, 2012 at 10:22 AM. Reason: Added 1 more related question

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured