468,283 Members | 1,952 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,283 developers. It's quick & easy.

VB.NET Grid related issues

I 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.
Jan 7 '08 #1
0 952

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by scottmallory | last post: by
3 posts views Thread by Rajani | last post: by
5 posts views Thread by pmud | last post: by
3 posts views Thread by thomson | last post: by
117 posts views Thread by phil-news-nospam | last post: by
1 post views Thread by Ed | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.