data grid view in c#
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hello friends i want to know how do i set source of the datagrid at runtime if possible can u send me the code of it.:)
Let's say "DataGrid1" is the name of your DataGrid. "ds" is the name of DataSet that you have filled your data.. so, you can put this code below in your Page_Load()
DataGrid1.DataSource = ds.Table[0]; DataGrid1.DataBound();
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) "Please vote to let me (and others) know if this answer helped you or not. A 5 vote tells people that your question has been answered successfully and that I've pitched it at just the right level. Thanks."