You must Sign In to post a response.
  • Category: .NET

    How add text footer in datagrid (window form control)

    i want to add footer text in windows form control of datagridview.. and i m using visual studio 2005
  • #407233
    hi

    take one empty row in that add what are data you want add that row to your datatable and bind the data table to datagridview link this

    Datatable table1=new Datatable();
    table1.Columns.Add("sno");
    table1.Columns.Add("sname");
    DataRow dr=table1.NewRow();
    dr[0]="1";
    dr[1]="dns";
    table1.rows.add(dr);
    //this is footer

    DataRow Footer=table1.NewRow();
    Footer[0]="Total";
    Footer[1]="your total value";
    table1.rows.add(Footer);

    datagridview1.Datasource=table1;

    any doubts feel free to ask

    Kiran Kumar Koyelada

  • #407234
    http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/41e91c53-4e12-49b1-ac6d-84b696541f7f

    http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/e37ec782-76aa-4ba6-91d6-f65f44754699

    Regards

    Mohan Kumar.D


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.