VB.NET Grid related issues
am 07.01.2008 07:24:00 von techeekI am building one application is VB.NET. I am using a grid, but facing some
problems related to it.
1) I am using .Net 1.1. I have used a datagrid.I have added a template
column in the datagrid.I item template of that datagrid.I I have bind a label
to the column and in edit item template I have bind a dropdown to it so that
when u load the data in the grid on form load u can only see the data in that
column but once when u click on Edit button of any row in the grid that
column becomes editable and shows a dropdown(that I have bind in edit item
template) from where you can select value for the column.
My Problem is that because I have bind column in edit item template I am not
able to access that dropdown in the code page(.cs file) and thatâs why I am
not able to define the select change event for that dropdown.
2) In the similar case above when I select any value from dropdown and
click on Update button the code performs some validation and if the
validation fails it return backs the page giving the appropriate message. But
once it returns backs the page the data which I had selected was lost, so
basically it is not able to save the view state for the column.
3) I have 5 text boxes on my page and Required field validator is
placed on every textbox. I have 2 buttons also. On click on 1 buttons all the
validation on the page to be fire and on click of 2nd button I want Required
field validation present on only textbox to fire. Is this possible?
If any body have solutions for these problems, please advice me.
Thanks in Advance.
--
techeek
http://oxyin.com/techeek