Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to bind ASPxGridView to data when clicking an external button

$
0
0

This example illustrates how to bind ASPxGridView to data when clicking an external button.


Note that if the grid is already bound to another datasource, it is necessary to set the grid's EnableViewState property to False.

Also, clear the grid's columns and set the AutoGenerateColumns property to True before calling the DataBind method.

Question Comments

Added By: Yan Xiaohua at: 9/29/2015 11:30:16 PM    

What shall we do if the source table structure may change ?  e.g: click button1 return product list, but click button2, return customer list?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>