Dynamically data retrieval
-
Hi! I hv to fix the image button & label box into the Datagrid., In that imgbtn & lblbox i hv to display dynamic values retrieves frm DB., I am using c# coding how can we do this one..? T.Prabu
-
Hi! I hv to fix the image button & label box into the Datagrid., In that imgbtn & lblbox i hv to display dynamic values retrieves frm DB., I am using c# coding how can we do this one..? T.Prabu
Hi, ASP.NET Datagrid has an event known as ItemDataBound event. Basically this event will get fired when each row is binding to the datagrid. So for displaying the image button and label, you can itemtemplate of the datagrid and for databinding to these controls, you can use ItemDataBound event The syntax of ItemDataBound event is given below private void YourDataGridName_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { //Here you should get the dynamic data from Database/file system etc. and bind to the controls } --Rakheesh