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

Set Default Value on RadGrid

1 Answer 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bruno
Top achievements
Rank 1
Bruno asked on 30 Aug 2011, 11:05 AM
Hi, 

I have searched for some posts regarding this same issue, but didn't find any solution.

How can I set a default value (for example, the first row) on a bound RadGrid?

Thanks, Rgds
Bruno

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 30 Aug 2011, 11:32 AM
Hello,

ItemdataBound()
{
if (e.Item is GridDataItem)
        {
            GridDataItem item = (GridDataItem)e.Item;
            int index = item.ItemIndex;
            if (index == 4)  // set your index here
            {
                item["ColumnUNiqueName"].Text = "Your text come here";
            }
        }
}

if this is not your case then elaborate your case.
let me know if any concern.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Bruno
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or