This is a migrated thread and some comments may be shown as answers.

grid view default values

1 Answer 257 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mihai Velicu
Top achievements
Rank 1
Mihai Velicu asked on 30 Mar 2010, 01:36 AM
Hi !

I have a grid with many columns . When I click add new row I would like to have some default values in some of my columns. How I can do that ?

Best regards,
Mihai

1 Answer, 1 is accepted

Sort by
0
Accepted
Julian Benkov
Telerik team
answered on 01 Apr 2010, 03:21 PM
Hi Mihai Velicu,

You can use the DefaultValueNeeded event of RadGridView control:

void radGridView1_DefaultValuesNeeded(object sender, GridViewRowEventArgs e)
{
    e.Row.Cells["YourColumnName"].Value = your data here....
}

Should you need additional assistance, feel free to contact me.

Greetings,
Julian Benkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Mihai Velicu
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or