c# - devExpress, how to dock gridView to the panel and remove 'drag column header'? -


i cannot dock fill gridview panel in devexpress visual studio 2010, cannot remove "drag column header..." well, both visible on screenshot. can me issue?! enter image description here

part of code:`entityconnection entityconn = new entityconnection(utility.getentityconnection("viefconn"));

list<object> mylist = new list<object>();  //gridcontrol gridcon = new gridcontrol();  using (viefconn dbf = new viefconn(entityconn)) {     // linq join query     var query = f in db.fields                           join t in db.types                           on f.type_id                           equals t.type_id                           (f.ass_type == _asstype)                           select new                           {                               f.name,                               f.field ,                               t.data,                               f.text,                                                       };                                    // add linq query list     mylist.addrange(query);     // bind data source of grid control list     assignmentdetailsgridcontrol.datasource = mylist;      gridview1.optionsbehavior.editable = true;     savebutton.enabled = true;     saveclosebutton.enabled = true;      assignmentdetailsgridcontrol.dock = dockstyle.fill;     gridview1.optionscustomization.allowcolumnmoving = false;     gridview1.optionsview.showgrouppanel = false; ` 

to dock grid need set

gridcontrol.dock = dockstylefill 

note: property of gridcontrol, not gridview.

it not quite clear mean remove "drag column header...".

if want disable dragging columns need set property

gridview.optionscustomization.allowcolumnmoving = false 

if want disable group panel (marked arrow on screenshot) need set

gridview.optionsview.showgrouppanel = false 

Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -