making the column readonly
-
I used dataset and sqldataAdapter to retreive data from the sql database , I want to make few column of the database which are shown in the datagrid to be read only . how can i do this ? And which event should i use in order to validate the datagrid's entered data for each cell, and how it can be done?
Rajwant Mishra
-
I used dataset and sqldataAdapter to retreive data from the sql database , I want to make few column of the database which are shown in the datagrid to be read only . how can i do this ? And which event should i use in order to validate the datagrid's entered data for each cell, and how it can be done?
Rajwant Mishra
I want to make few column of the database which are shown in the datagrid to be read only . how can i do this ? --->Use this : grid.Columns(2).ReadOnly = True --->U want to specify the column number here. And which event should i use in order to validate the datagrid's entered data for each cell, and how it can be done? --->Use CellValidating event in the datagrid property.
Janani
-
I want to make few column of the database which are shown in the datagrid to be read only . how can i do this ? --->Use this : grid.Columns(2).ReadOnly = True --->U want to specify the column number here. And which event should i use in order to validate the datagrid's entered data for each cell, and how it can be done? --->Use CellValidating event in the datagrid property.
Janani
i am using vb.net 2003 it is not there with this vb.net I can use this event with datatable.column(index).readonly=true but i am not able bind the datatable directly as i am fetching data from two table and giving the datagrid direcly using the dataset, by using datatable first i have to set it`s datasource to the result obtained by the query , and then i have to set the source of datagrid to datatable but i am not able do this with my app. it does not give any error but result in grid is empty....help lsss here... again that cell changing event is also not here ,i want to validate each entry before filling it into the database so which is the right way to do this ? is there is any way in which i can achive my goal?
Rajwant Mishra