C1GridView: Is it possible to set FooterText when AutoGenerateColumns is set to True?

Posted by: sv2kyandex-ru on 10 September 2017, 11:31 am EST

  • Posted 10 September 2017, 11:31 am EST

    Hello.


    1. I'd like to set


    C1GridView1.Columns(1).FooterText = "12345".


    Which even must I use to type this in?


    As I see the Columns collection is empty in each event (when AutoGenerateColumns=True).


    2. I've not found the legendary Merge property for a column (which there is in the C1DataGrid).


    Is it planned to be implemented this in the future? When?


    3. When the next version of ASP.NET studio is expected?


    Thanks in advance.


     

  • Replied 10 September 2017, 11:31 am EST

    Hi,


    1) You can specify it on cell level by using RowCreated event. You will need to
       know the index of footer cell:

       void C1GridView1_RowCreated(object sender, C1GridViewRowEventArgs e)
       {
           if (e.Row.RowType == C1GridViewRowType.Footer)
           {
               e.Row.Cells[1].Text = "12345";
           }
       }

    2) There is RowMerge property for all C1Field descendants:
      ((C1BoundField)C1GridView.Columns[0]).RowMerge

    3) Major versions are released each trimester. What version of the controls do you use now?


    Regards,


    Sergey.

  • Replied 10 September 2017, 11:31 am EST

    Thanks, Sergey.


    I use the latest demo to evaluate, that I've downloaded yesterday. I see from time to time at the feachers.


    I noticed when AutoGenerateColumns is set to True, there are many properties don't work (AllowColMoving, AllowColSizing, AllowGroupping) unfortunately. I think to write my own composite custom control with universal approach, but see someone is stimulating us to do monkey work,  creating all at design time (columns and so on). The approach in TrueDbGrid ActiveX component was perfect with fully run-time bounding support. I'm still waiting when the same will be in the ASP.NET grid.


    I bought C1StudioEnterprise_T306 in 2007, but didn't use ASP.NET controls yet.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels