Click here to Skip to main content
15,907,326 members
Home / Discussions / C#
   

C#

 
GeneralRe: Excel line-column combination chart using C#. Pin
Member 91698878-Jul-12 22:58
Member 91698878-Jul-12 22:58 
GeneralRe: Excel line-column combination chart using C#. Pin
dan!sh 8-Jul-12 23:19
professional dan!sh 8-Jul-12 23:19 
Questionexcel chart Pin
Member 91698878-Jul-12 20:23
Member 91698878-Jul-12 20:23 
AnswerRe: excel chart Pin
Abhinav S8-Jul-12 20:30
Abhinav S8-Jul-12 20:30 
GeneralRe: excel chart Pin
Member 91698878-Jul-12 20:57
Member 91698878-Jul-12 20:57 
QuestionExpire Sessions via Session Id in ASP.Net C#? Pin
Mohammad Dayyan8-Jul-12 19:29
Mohammad Dayyan8-Jul-12 19:29 
AnswerRe: Expire Sessions via Session Id in ASP.Net C#? Pin
Abhinav S8-Jul-12 20:07
Abhinav S8-Jul-12 20:07 
GeneralRe: Expire Sessions via Session Id in ASP.Net C#? Pin
Mohammad Dayyan8-Jul-12 20:31
Mohammad Dayyan8-Jul-12 20:31 
AnswerRe: Expire Sessions via Session Id in ASP.Net C#? Pin
Pete O'Hanlon10-Jul-12 23:42
mvePete O'Hanlon10-Jul-12 23:42 
QuestionException in VideoStreamGetFrameOpen Pin
Anandagowda8-Jul-12 16:25
Anandagowda8-Jul-12 16:25 
AnswerRe: Exception in VideoStreamGetFrameOpen Pin
Richard Andrew x648-Jul-12 16:48
professionalRichard Andrew x648-Jul-12 16:48 
GeneralRe: Exception in VideoStreamGetFrameOpen Pin
Anandagowda8-Jul-12 20:14
Anandagowda8-Jul-12 20:14 
Questioncodes Pin
roxxy1238-Jul-12 8:12
roxxy1238-Jul-12 8:12 
AnswerRe: codes Pin
Pete O'Hanlon8-Jul-12 9:53
mvePete O'Hanlon8-Jul-12 9:53 
AnswerRe: codes Pin
Richard Andrew x648-Jul-12 12:37
professionalRichard Andrew x648-Jul-12 12:37 
GeneralRe: codes Pin
Mycroft Holmes8-Jul-12 13:07
professionalMycroft Holmes8-Jul-12 13:07 
AnswerRe: codes Pin
OriginalGriff8-Jul-12 20:08
mveOriginalGriff8-Jul-12 20:08 
QuestionZoom out - in Pin
jojoba20117-Jul-12 22:34
jojoba20117-Jul-12 22:34 
AnswerRe: Zoom out - in Pin
OriginalGriff7-Jul-12 23:04
mveOriginalGriff7-Jul-12 23:04 
GeneralRe: Zoom out - in Pin
Madhan Mohan Reddy P8-Jul-12 23:15
professionalMadhan Mohan Reddy P8-Jul-12 23:15 
QuestionRe: Zoom out - in Pin
Trak4Net9-Jul-12 8:03
Trak4Net9-Jul-12 8:03 
QuestionDatagrid object binding and saving back Pin
Ramkithepower6-Jul-12 23:17
Ramkithepower6-Jul-12 23:17 
Hi All,

I have created an object book which is as follows

public class book
{
public string bookname;
public string bookauthor;
public string bookprice;
}

public class books:List<book>
{
}

now on the load of the page i get some book details stored in the database and add them to the "books" object and also I add a empty book object to the books so which can be used by the users to add one new book.

I then bind this to a datagrid on the aspx page with template columns.

Books books = new Books();
books=Books.getBooks(); //also adds on blank book object
dgbooks.datasource = books;
dgbooks.databind();

on click of the save button i require the datasource to be type cast as books object. I am trying to do this on the click event of the save button

books = (Books)dgbooks.datasource;

but this is not working because the datasource is entry. Because during the postback it is wiped off. Can someone please help me to come around with this one?

The above code is just a sample code.. hence please ignore the mistakes.
Jack Sparrow
--------------------------------------
Defeat is not the worst of failures. Not to have tried is the true failure.

AnswerRe: Datagrid object binding and saving back Pin
kornakar10-Jul-12 2:06
kornakar10-Jul-12 2:06 
QuestionC# - window logon events Pin
rupniceguy6-Jul-12 22:20
rupniceguy6-Jul-12 22:20 
AnswerRe: C# - window logon events Pin
Dave Kreskowiak7-Jul-12 3:09
mveDave Kreskowiak7-Jul-12 3:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.