How to get the names of visible column from grid in codebehind?

  1. #1

    How to get the names of visible column from grid in codebehind?

    Is there any way that I can get names of visible column only.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	109 
Size:	11.4 KB 
ID:	25086

    I tried
    bool abc1 = GridPanel.ColumnModel.Columns[1].Hidden;
    if(bool)
      //get name of column name using 
    
    GridPanel.ColumnModel.Columns[1].Text
    But this is not working is there anyway I can achieve this
    Last edited by iamsky13; Nov 30, 2017 at 4:24 AM.

Similar Threads

  1. Dynamic Column names
    By derymax in forum 1.x Help
    Replies: 6
    Last Post: Nov 14, 2011, 12:40 PM
  2. Column Names not vissble while exporting
    By emon in forum 1.x Help
    Replies: 3
    Last Post: Apr 14, 2011, 4:31 PM
  3. Replies: 0
    Last Post: Apr 05, 2011, 4:18 AM
  4. simple gridpanel autogenerating column names
    By lordofthexings in forum Examples and Extras
    Replies: 0
    Last Post: Apr 22, 2010, 1:39 PM
  5. Gridpanel not showing column names
    By unaltro2 in forum 1.x Help
    Replies: 3
    Last Post: Feb 16, 2010, 1:54 PM

Tags for this Thread

Posting Permissions