How to persist the Configuring a ASP GridView created at runtime?http://forums.asp.net/t/1772139.aspx/1?How+to+persist+the+Configuring+a+ASP+GridView+created+at+runtime+Fri, 24 Feb 2012 08:20:35 -050017721394843423http://forums.asp.net/p/1772139/4843423.aspx/1?How+to+persist+the+Configuring+a+ASP+GridView+created+at+runtime+How to persist the Configuring a ASP GridView created at runtime? <p></p> <p>How to persist the Configuring a ASP GridView created at runtime and</p> <p><span id="result_box" lang="en"><span class="hps">Because</span> <span class="hps"> GridControl</span> <span class="hps">retains its</span> <span class="hps">settings</span> <span class="hps">if the</span> <span class="hps">control</span> <span class="hps"> is created</span> <span class="hps">in HTML</span> <span class="hps">and then</span> <span class="hps">set</span> <span class="hps">at runtime</span> <span class="hps"> and</span> <span class="hps">if it is not created</span> <span class="hps">at runtime</span> <span class="hps">as a</span> <span class="hps">completely</span> <span class="hps"> new object</span></span></p> <p>Thanks..</p> <p></p> 2012-02-21T15:23:17-05:004846552http://forums.asp.net/p/1772139/4846552.aspx/1?Re+How+to+persist+the+Configuring+a+ASP+GridView+created+at+runtime+Re: How to persist the Configuring a ASP GridView created at runtime? <p>Dear friend,</p> <p>&nbsp;You can easily inherit from the GridView Type and create you own GridView overriding the default settings. As a result, you can create your own in the runtime with your own configuration.&nbsp;<img src="http://forums.asp.net/scripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif" alt="Laughing" title="Laughing" border="0"></p> 2012-02-23T07:08:08-05:004846566http://forums.asp.net/p/1772139/4846566.aspx/1?Re+How+to+persist+the+Configuring+a+ASP+GridView+created+at+runtime+Re: How to persist the Configuring a ASP GridView created at runtime? <p>You can override the constructor and set your own values and you can override any of GridView methods like</p> <pre class="prettyprint">protected override void OnRowCreated(GridViewRowEventArgs e) { base.OnRowCreated(e); // Wrire your own actions }</pre> 2012-02-23T07:12:25-05:004848819http://forums.asp.net/p/1772139/4848819.aspx/1?Re+How+to+persist+the+Configuring+a+ASP+GridView+created+at+runtime+Re: How to persist the Configuring a ASP GridView created at runtime? <p>Hi,</p> <p>What do you mean by &quot;retains its settings&quot;?</p> <p>If&nbsp;the&nbsp;GridView&nbsp;is a dynamically created, we need to&nbsp;add it on each postback before LoadViewState stage.</p> 2012-02-24T08:20:35-05:00