Darth Florus Posted November 26, 2013 Share Posted November 26, 2013 Mr. Farshad: 1) Is possible to incorporate a message that appears centered on the dbGrid when is empty? 2) Is possible to draw the empty rows of a dbGrid? Will be usefull because when the session is themed the empty rows are showed with default clBtnFace color and is confuse for the user. Best Regards Link to comment Share on other sites More sharing options...
Sherzod Posted December 5, 2013 Share Posted December 5, 2013 1) Is possible to incorporate a message that appears centered on the dbGrid when is empty? Hi Oscar Flor Try: UniDBGrid1 - > UniEvents function beforeInit(sender) { this.view.emptyText = "<div style='width:150px;margin:0 auto;'><br><h2>No records!!!</h2></div>"; } Or change empty text in runtime: UniSession.AddJS(UniDBGrid1.JSName + '.view.emptyText = "<div style=''width:150px;margin:0 auto;''><br><h2>No records!!!</h2></div>"; '+UniDBGrid1.JSName+'.getView().refresh();'); Sincerely Link to comment Share on other sites More sharing options...
Darth Florus Posted December 6, 2013 Author Share Posted December 6, 2013 Thanks I will try!!! Link to comment Share on other sites More sharing options...
Recommended Posts