Hey folks,

I just have a quick question I can't seem to find anywhere. I have a datagrid with one of the columns being a combo box with values.

I would like either the default value on a new row to be one of the values from the combo box, or if the user does not select something from the combo box, to default to a value. Either or would work great.

Thanks a lot,
Sky

Figured it out, thanks anyway :P

Found the code to do it finally, but then also found that there's a property for DefaultValue in the dataset editor.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.