471,108 Members | 1,631 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,108 software developers and data experts.

binding a combo box in a datagrid

Hi all,

I have a datagrid, which is bound to a datatable. In the datagrid, I have
changed some of the fields to be combo boxes.

In the datagrid I want to be able to allow the user to change the value of a
cell, based on a combo box selection. For example, in a timesheet data
entry, we want to enter what type of leave the person may have had. eg, sick
leave, annual leave etc.

However, if the person worked a normal day, the leave field is null, so the
combo box is erroring, because it cannot bind to a null field.

As I am using legacy data is there a way around this without having to
change all these null values to some kind of default value?

Sep 29 '06 #1
0 941

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Frazer | last post: by
reply views Thread by Ben Reese | last post: by
4 posts views Thread by Jim Shaffer | last post: by
2 posts views Thread by Jake Smythe | last post: by
3 posts views Thread by Max | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.