Hello all.. I need your help please.. I am in a middle of doing my thesis.. and my project is to create a website for my university.. In the website, there is a page for the user to insert data to the database.. One of the data that must be inserted is being made with UltraWebGrid.. So, I get list of the data from the database and bind it to the UltraWebGrid and display it in the web page (using ASP.Net of course). The data display well.. The problem is, how do I get the data I chose (I combine my UltraWebGrid with the check box with OnInitializeRow command). So when I check the check box for the specific row of the grids, I want the C# to get the selected data ID and then I want to sent the selected data to the database (the ID or else).. I have tried many times but it can not work.. Oh yeah, the user can select more than one data (so he/she can check the check box he/she wanted). And how can I access or point each data from the grids from the C# page? Please anyone help.. Or is there any other way to choose any of the data from the grids freely and then sent the ID to the database?
Hello dave_yenz,
This is just a follow up on the thread if you have any questions in regards to the BoundCheckBoxField of the WebDataGrid. Within the BoundCheckBoxField you can set the DataFieldName and Key properties when databinding to a particular datasource type. Also you can find the list of supported datasources here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataGrid_Supported_Data_Sources.html.
Let me know if you have any questions with this matter. Thank you.
For using a checkbox in a grid you can use the BoundCheckBoxField that was introduced in NetAdvantage 2011 Vol 1. An example in our samples browser can be found here: http://samples.infragistics.com/aspnet/Samples/WebDataGrid/Display/Checkbox-Column/Default.aspx?cn=data-grid&sid=2280929f-fa31-472f-b9d2-f44cc94f2fcd. You can set the DataFieldName and Key properties for the column type.
Also when checking a checkbox that is contained in the record you can handle the RowUpdating server side event. This will fire once the check state of the checkbox has been changed. In the RowUpdating event contains the RowUpdatingEventArgs and you can find the list of properties and description here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=Infragistics4.Web.v11.1~Infragistics.Web.UI.GridControls.WebDataGrid~RowUpdating_EV.html.