Databinding

I

Islamegy

In my C# windws app i have 2 problems that datagrid have no column hight
property & no multiline which mean memo/text field will not be readable
(user friendly).. is there anyway to inherit from datagrid to add this
property??

i use multiline textboxes and i used binding
txtName.DataBindings.Add(new Binding("Text", this.dataSet11,
"Information.Description"));

When i add new row
this.BindingContext[dataSet11,"Information"].AddNew();
and try to save
this.BindingContext[dataSet11,"Information"].EndCurrentEdit();
sqlDataAdapter1.Update(dataSet11.Information);

i have a ID Column which is primarykey... it's value will be generated from
the NAME & Date... how can i asssign this column value b4 i
EndCurrentEdit()??
and how can i validate the user input and rise custom errors??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top