зеркало из https://github.com/mono/mail-archives.git
99 строки
3.9 KiB
HTML
99 строки
3.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] FileOpenDialog?? - Get current Row?
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20FileOpenDialog%3F%3F%20-%20Get%20current%20Row%3F&In-Reply-To=">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
|
|
<LINK REL="Previous" HREF="007741.html">
|
|
<LINK REL="Next" HREF="007743.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] FileOpenDialog?? - Get current Row?</H1>
|
|
<B>Duong Nguyen</B>
|
|
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20FileOpenDialog%3F%3F%20-%20Get%20current%20Row%3F&In-Reply-To="
|
|
TITLE="[Gtk-sharp-list] FileOpenDialog?? - Get current Row?">duongnguyen at mail.ru
|
|
</A><BR>
|
|
<I>Sun Jan 28 01:29:24 EST 2007</I>
|
|
<P><UL>
|
|
<LI>Previous message: <A HREF="007741.html">[Gtk-sharp-list] FileOpenDialog?? - Get current Row?
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007743.html">[Gtk-sharp-list] Event when application is about to close
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7742">[ date ]</a>
|
|
<a href="thread.html#7742">[ thread ]</a>
|
|
<a href="subject.html#7742">[ subject ]</a>
|
|
<a href="author.html#7742">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>OK, it's greate. Thank you very much!
|
|
|
|
|
|
----- Original Message -----
|
|
From: "Shaika Dzari" <<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">shaikadzari at gmail.com</A>>
|
|
To: <<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">gtk-sharp-list at lists.ximian.com</A>>
|
|
Sent: Sunday, January 28, 2007 5:52 AM
|
|
Subject: Re: [Gtk-sharp-list] FileOpenDialog?? - Get current Row?
|
|
|
|
|
|
Le samedi 27 janvier 2007 12:38, Duong Nguyen a écrit :
|
|
><i> Hi,
|
|
</I>><i> Thanks for your help and sorry for not having read carefully.
|
|
</I>><i> I have once more question about Gtk.StoreList that bound to TreeView. How
|
|
</I>><i> to get the selected row of the StoreList?
|
|
</I>><i>
|
|
</I>
|
|
Use an event on the treeview:
|
|
|
|
treeview1.Selection.Changed += OnSelectionEntry;
|
|
|
|
protected void OnSelectionEntry(object o, EventArgs args)
|
|
{
|
|
TreeModel model;
|
|
string test;
|
|
|
|
if (((TreeSelection)o).GetSelected(out model, out iter))
|
|
{
|
|
// Initiation des valeurs selon la sélection
|
|
test = (string)model.GetValue (iter, 0);
|
|
}
|
|
}
|
|
|
|
You can find information here:
|
|
<A HREF="http://www.mono-project.com/GtkSharp_TreeView_Tutorial">http://www.mono-project.com/GtkSharp_TreeView_Tutorial</A>
|
|
<A HREF="http://lists.ximian.com/pipermail/gtk-sharp-list/2004-April/003781.html">http://lists.ximian.com/pipermail/gtk-sharp-list/2004-April/003781.html</A>
|
|
|
|
@+
|
|
_______________________________________________
|
|
Gtk-sharp-list maillist - <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">Gtk-sharp-list at lists.ximian.com</A>
|
|
<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
|
|
|
|
</PRE>
|
|
|
|
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI>Previous message: <A HREF="007741.html">[Gtk-sharp-list] FileOpenDialog?? - Get current Row?
|
|
</A></li>
|
|
<LI>Next message: <A HREF="007743.html">[Gtk-sharp-list] Event when application is about to close
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#7742">[ date ]</a>
|
|
<a href="thread.html#7742">[ thread ]</a>
|
|
<a href="subject.html#7742">[ subject ]</a>
|
|
<a href="author.html#7742">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
|
|
<hr>
|
|
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
|
|
mailing list</a><br>
|
|
</body></html>
|