Radgrid updating
How to update image in radgrid it is columns(ID,Name,Picture) data base is sms
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sreejesh SPRank #1,975 · 740 reputationPosted Apr 10, 2013, 2:41 AM EDT
please call populate function in any changes from DB side
For example
Protected void pageload(Eventargs e,objectSender e)
{
if(!ispostback)
{
populate();
}
}
protected void save(Eventargs e,objectSender o)
{
//save action completed call populate function
populate();
}
protected void delete(Eventargs e,objectSender o)
{
//Delete function completeed call Populate function
populate();
}
protected void populate()
{
sqlconnection con=new sqlconnection(@"connectionstring")
sqlcommand cmd=new sqlcommand();
sqldataadapter da=new sqldataadapter();
datatable dt=new datatable();
cmd.connection=con;
cmd.commandtext="select * from table";
da.selectcommand=cmd;
da.fill(dt);
radgrid1.datasource=dt;
radgrid1.databind();
}
Thanks
Sreejesh
}